define StartupObject, add CustomMessageException
This commit is contained in:
parent
64bbd643d1
commit
e73a71afee
3 changed files with 19 additions and 13 deletions
|
@ -23,11 +23,13 @@
|
|||
<Product>CreamAPI Downloader & 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>
|
||||
|
|
17
CreamInstaller/CustomMessageException.cs
Normal file
17
CreamInstaller/CustomMessageException.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue