Skip to content

Commit 076f29a

Browse files
Restructure layout for input/output; other cleanup
- Move Import XEL + Group events inline with Input label (right-aligned) - Move Save to file button inline with Output label, add clear (✕) button - Dynamic annotation: gray default text, blue redirect path with file info - Split into 3 bottom panels: Input Options, Output Options, Symbol/PDB Paths - Post-build step removes ModernWpf locale resource DLL folders
1 parent 410a613 commit 076f29a

6 files changed

Lines changed: 161 additions & 121 deletions

File tree

Modern/Converters.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ public object ConvertBack(object value, Type targetType, object parameter, Cultu
3131
throw new NotSupportedException();
3232
}
3333

34+
internal class BoolToOutputBrushConverter : IValueConverter {
35+
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) =>
36+
value is bool b && b ? System.Windows.Media.Brushes.DodgerBlue : System.Windows.Media.Brushes.Gray;
37+
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) =>
38+
throw new NotSupportedException();
39+
}
40+
3441
internal class StepToBoldConverter : IValueConverter {
3542
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
3643
if (value is int current && parameter is string stepStr && int.TryParse(stepStr, out int step))

Modern/ResolverViewModel.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,17 @@ public bool PinPdbPaths {
260260
public bool ShowInlineFrames { get => _showInlineFrames; set => SetField(ref _showInlineFrames, value, nameof(ShowInlineFrames)); }
261261

262262
private string _outputFilePath = string.Empty;
263-
public string OutputFilePath { get => _outputFilePath; set => SetField(ref _outputFilePath, value, nameof(OutputFilePath)); }
263+
public string OutputFilePath {
264+
get => _outputFilePath;
265+
set {
266+
if (SetField(ref _outputFilePath, value, nameof(OutputFilePath))) {
267+
OnPropertyChanged(nameof(HasOutputFilePath));
268+
OnPropertyChanged(nameof(OutputRedirectMessage));
269+
}
270+
}
271+
}
272+
public bool HasOutputFilePath => !string.IsNullOrEmpty(_outputFilePath);
273+
public string OutputRedirectMessage => HasOutputFilePath ? $"Output will be saved to: {_outputFilePath}" : null;
264274

265275
// -- Status --
266276
private string _statusMessage = "Ready";

Modern/SQLCallstackResolver.Modern.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,4 +218,7 @@
218218
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
219219
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
220220
</PropertyGroup>
221+
<Target Name="CleanModernWpfLocales" AfterTargets="Build">
222+
<Exec Command="for /d %%d in (&quot;$(OutDir)*&quot;) do ( if exist &quot;%%d\ModernWpf.resources.dll&quot; if exist &quot;%%d\ModernWpf.Controls.resources.dll&quot; rd /s /q &quot;%%d&quot; )" />
223+
</Target>
221224
</Project>

0 commit comments

Comments
 (0)