diff --git a/InstallerGui/App.xaml b/InstallerGui/App.xaml deleted file mode 100644 index f28634d7..00000000 --- a/InstallerGui/App.xaml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/InstallerGui/App.xaml.cs b/InstallerGui/App.xaml.cs deleted file mode 100644 index 6ccc1a5a..00000000 --- a/InstallerGui/App.xaml.cs +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (c) 2026 Erik Darling, Darling Data LLC - * - * This file is part of the SQL Server Performance Monitor. - * - * Licensed under the MIT License. See LICENSE file in the project root for full license information. - */ - -using System; -using System.Threading.Tasks; -using System.Windows; -using System.Windows.Threading; -using PerformanceMonitorInstallerGui.Utilities; - -namespace PerformanceMonitorInstallerGui -{ - public partial class App : Application - { - protected override void OnStartup(StartupEventArgs e) - { - base.OnStartup(e); - - Logger.LogToFile("App.OnStartup", "Application starting..."); - - /* - Register global exception handlers - */ - AppDomain.CurrentDomain.UnhandledException += OnUnhandledException; - DispatcherUnhandledException += OnDispatcherUnhandledException; - TaskScheduler.UnobservedTaskException += OnUnobservedTaskException; - } - - private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) - { - var exception = e.ExceptionObject as Exception; - if (exception != null) - { - Logger.LogToFile("OnUnhandledException", exception); - } - - if (e.IsTerminating) - { - MessageBox.Show( - $"A fatal error occurred and the application must close.\n\n" + - $"Error: {exception?.Message}\n\n" + - $"Inner: {exception?.InnerException?.Message}\n\n" + - $"Log file: {Logger.LogFilePath}", - "Fatal Error", - MessageBoxButton.OK, - MessageBoxImage.Error); - } - } - - private void OnDispatcherUnhandledException(object sender, DispatcherUnhandledExceptionEventArgs e) - { - Logger.LogToFile("OnDispatcherUnhandledException", e.Exception); - - e.Handled = true; - - MessageBox.Show( - $"An error occurred: {e.Exception.Message}\n\n" + - $"Inner: {e.Exception.InnerException?.Message}\n\n" + - $"Log file: {Logger.LogFilePath}", - "Error", - MessageBoxButton.OK, - MessageBoxImage.Error); - } - - private void OnUnobservedTaskException(object? sender, UnobservedTaskExceptionEventArgs e) - { - if (e.Exception != null) - { - Logger.LogToFile("OnUnobservedTaskException", e.Exception); - } - - e.SetObserved(); - - Dispatcher.Invoke(() => - { - MessageBox.Show( - $"A background task error occurred: {e.Exception?.InnerException?.Message ?? e.Exception?.Message}\n\n" + - $"Log file: {Logger.LogFilePath}", - "Background Error", - MessageBoxButton.OK, - MessageBoxImage.Warning); - }); - } - } -} diff --git a/InstallerGui/EDD.ico b/InstallerGui/EDD.ico deleted file mode 100644 index a7f07aa3..00000000 Binary files a/InstallerGui/EDD.ico and /dev/null differ diff --git a/InstallerGui/InstallerGui.csproj b/InstallerGui/InstallerGui.csproj deleted file mode 100644 index 6e6a58ef..00000000 --- a/InstallerGui/InstallerGui.csproj +++ /dev/null @@ -1,44 +0,0 @@ - - - - WinExe - net8.0-windows - enable - true - PerformanceMonitorInstallerGui - PerformanceMonitorInstallerGui - SQL Server Performance Monitor Installer - 2.4.1 - 2.4.1.0 - 2.4.1.0 - 2.4.1 - Darling Data, LLC - Copyright © 2026 Darling Data, LLC - EDD.ico - win-x64 - true - true - true - false - true - true - latest-recommended - CA1849;CA2007;CA1508;CA1031;CA1001;CA1822;CA1305;CA2100;CA1002;CA1845;CA1861;CA2234;CA1062;CA1823 - - - - - - - - - - - - - - PreserveNewest - - - - diff --git a/InstallerGui/MainWindow.xaml b/InstallerGui/MainWindow.xaml deleted file mode 100644 index 1e428e38..00000000 --- a/InstallerGui/MainWindow.xaml +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -