From e73a71afee78fb811a9da7daca322169bb6680e4 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Fri, 22 Oct 2021 16:45:56 -0400 Subject: [PATCH] define StartupObject, add CustomMessageException --- CreamInstaller/CreamInstaller.csproj | 2 ++ CreamInstaller/CustomMessageException.cs | 17 +++++++++++++++++ CreamInstaller/InstallForm.cs | 13 ------------- 3 files changed, 19 insertions(+), 13 deletions(-) create mode 100644 CreamInstaller/CustomMessageException.cs diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index 372057e..b3cd9af 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -23,11 +23,13 @@ CreamAPI Downloader & Installer pointfeev pointfeev.creaminstaller + CreamInstaller.Program embedded true + TRACE diff --git a/CreamInstaller/CustomMessageException.cs b/CreamInstaller/CustomMessageException.cs new file mode 100644 index 0000000..d42b3b4 --- /dev/null +++ b/CreamInstaller/CustomMessageException.cs @@ -0,0 +1,17 @@ +using System; + +namespace CreamInstaller +{ + public class CustomMessageException : Exception + { + private string message; + public override string Message => message ?? "CustomMessageException"; + + public override string ToString() => Message; + + public CustomMessageException(string message) + { + this.message = message; + } + } +} \ No newline at end of file diff --git a/CreamInstaller/InstallForm.cs b/CreamInstaller/InstallForm.cs index 76bdfd3..b711307 100644 --- a/CreamInstaller/InstallForm.cs +++ b/CreamInstaller/InstallForm.cs @@ -10,19 +10,6 @@ using System.Windows.Forms; namespace CreamInstaller { - public class CustomMessageException : Exception - { - private string message; - public override string Message => message ?? "CustomMessageException"; - - public override string ToString() => Message; - - public CustomMessageException(string message) - { - this.message = message; - } - } - public partial class InstallForm : Form { public bool Reselecting = false;