define StartupObject, add CustomMessageException

This commit is contained in:
pointfeev 2021-10-22 16:45:56 -04:00
parent 64bbd643d1
commit e73a71afee
No known key found for this signature in database
GPG key ID: AA14DC36C4D7D13C
3 changed files with 19 additions and 13 deletions

View file

@ -23,11 +23,13 @@
<Product>CreamAPI Downloader &amp; Installer</Product>
<Authors>pointfeev</Authors>
<PackageId>pointfeev.creaminstaller</PackageId>
<StartupObject>CreamInstaller.Program</StartupObject>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DebugType>embedded</DebugType>
<DebugSymbols>true</DebugSymbols>
<DefineConstants>TRACE</DefineConstants>
</PropertyGroup>
<ItemGroup>

View file

@ -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;
}
}
}

View file

@ -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;