49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using System;
|
|
using System.Windows.Forms;
|
|
using JD.Application.Program;
|
|
using JD.TeaBoxAddinSystem.Bootstrap;
|
|
using TeaBox;
|
|
using TeaBox.Bootstrap;
|
|
using Traviata.Properties;
|
|
|
|
namespace Traviata
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static int Main(string[] arguments)
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
return new TraviataApplicationStartup(arguments).Start();
|
|
}
|
|
|
|
public class TraviataApplicationStartup : GenericApplicationStartup
|
|
{
|
|
public TraviataApplicationStartup(string[] arguments, RuntimeMode runtimeMode = RuntimeMode.Normal)
|
|
: base(arguments, true, runtimeMode)
|
|
{
|
|
}
|
|
|
|
static TraviataApplicationStartup()
|
|
{
|
|
ProgramIdentity.Instance.Name = "Traviata";
|
|
ProgramIdentity.Instance.Icon = Resources.ApplicationIcon;
|
|
if (DateTime.Now.Second == 42)
|
|
{
|
|
ProgramIdentity.Instance.SplashScreenImage = Resources.ApplicationSplashALT;
|
|
}
|
|
else
|
|
{
|
|
ProgramIdentity.Instance.SplashScreenImage = Resources.ApplicationSplash;
|
|
}
|
|
|
|
ProgramIdentity.Instance.UserDocumentationFile = @"https://mdc-web-tomcat17.ubisoft.org/confluence/display/jdh/TRAVIATA";
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|