protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); DispatcherUnhandledException += ErrorReporting.DispatcherUnhandledException; AppDomain.CurrentDomain.UnhandledException += ErrorReporting.UnhandledExceptionHandle; Window = new MainWindow(); CommandArgsFactory.Execute(e.Args.ToList()); }
public SettingWindow(MainWindow mainWindow) { this.MainWindow = mainWindow; InitializeComponent(); Loaded += Setting_Loaded; }