BililiveRecorder/BililiveRecorder.WPF/Pages/AdvancedSettingsPage.xaml.cs

31 lines
906 B
C#

using System;
using System.Runtime.Serialization;
using System.Windows;
namespace BililiveRecorder.WPF.Pages
{
/// <summary>
/// Interaction logic for AdvancedSettingsPage.xaml
/// </summary>
public partial class AdvancedSettingsPage
{
public AdvancedSettingsPage()
{
InitializeComponent();
}
private void Crash_Click(object sender, RoutedEventArgs e)
{
throw new TestException("test crash triggered");
}
public class TestException : Exception
{
public TestException() { }
public TestException(string message) : base(message) { }
public TestException(string message, Exception innerException) : base(message, innerException) { }
protected TestException(SerializationInfo info, StreamingContext context) : base(info, context) { }
}
}
}