Browse Source

Add settings debug exception button

pull/5/head
Ionite 1 year ago
parent
commit
203004969e
No known key found for this signature in database
  1. 4
      StabilityMatrix/SettingsPage.xaml
  2. 8
      StabilityMatrix/ViewModels/SettingsViewModel.cs

4
StabilityMatrix/SettingsPage.xaml

@ -103,6 +103,10 @@
Command="{Binding PingWebApiCommand}"
Content="Ping Web API"
Margin="8" />
<Button
Command="{Binding DebugTriggerExceptionCommand}"
Content="Trigger Exception"
Margin="8" />
</StackPanel>
</StackPanel>
</ui:Card>

8
StabilityMatrix/ViewModels/SettingsViewModel.cs

@ -2,6 +2,7 @@ using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
using System.IO;
using System.Reflection;
@ -182,6 +183,13 @@ public partial class SettingsViewModel : ObservableObject
await dialog.ShowAsync();
}
[RelayCommand]
[DoesNotReturn]
private void DebugTriggerException()
{
throw new Exception("Test exception");
}
private void ApplyTheme(string value)
{
switch (value)

Loading…
Cancel
Save