39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using System;
|
|
using Application = System.Windows.Forms.Application;
|
|
using JD.Application.Program;
|
|
using JD.Perforce;
|
|
|
|
namespace JDSongConverter
|
|
{
|
|
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static int Main(string[] arguments)
|
|
{
|
|
InitializeProgramIdentity();
|
|
|
|
//Check if cmdline Arguments exists, if yes run it cmdline through
|
|
if (arguments.GetLength(0) > 0)
|
|
{
|
|
//Call JDSongConverterStartup which works on console and no gui
|
|
return new JDSongConverterStartup(arguments).Start();
|
|
}
|
|
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
return new GenericApplicationStartup(arguments).Start();
|
|
}
|
|
|
|
private static void InitializeProgramIdentity()
|
|
{
|
|
ProgramIdentity.Instance.Name = "JDSongConverter";
|
|
ProgramIdentity.Instance.Icon = Properties.Resources.Application;
|
|
ProgramIdentity.Instance.SplashScreenImage = Properties.Resources.SplashScreen;
|
|
ProgramIdentity.Instance.UserDocumentationFile = "";
|
|
}
|
|
}
|
|
}
|