47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Windows.Forms;
|
|
using JD.Application.Program;
|
|
|
|
namespace TempoBlaster.Program
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static int Main(string[] arguments)
|
|
{
|
|
InitializeProgramIdentity();
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
try
|
|
{
|
|
return new GenericApplicationStartup(arguments).Start();
|
|
}
|
|
catch (ApplicationException ex)
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
return -1;
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show("Error details " + ex.ToString());
|
|
return -1;
|
|
}
|
|
}
|
|
|
|
private static void InitializeProgramIdentity()
|
|
{
|
|
ProgramIdentity.Instance.Name = "TempoBlaster";
|
|
ProgramIdentity.Instance.Icon = Properties.Resources.Application;
|
|
ProgramIdentity.Instance.DocumentationFile = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "TempoBlasterDocumentation.chm");
|
|
ProgramIdentity.Instance.UserDocumentationFile = "https://mdc-web-tomcat17.ubisoft.org/confluence/display/jdh/TEMPOBLASTER";
|
|
}
|
|
}
|
|
}
|