using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Linq; using System.Reflection; using System.Windows.Forms; using JD.Application.Program; namespace DanceEditor { static class Program { /// /// The main entry point for the application. /// [STAThread] static int Main(string[] arguments) { InitializeProgramIdentity(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); return new GenericApplicationStartup(arguments).Start(); } private static void InitializeProgramIdentity() { ProgramIdentity.Instance.Name = "DanceEditor"; ProgramIdentity.Instance.Icon = Properties.Resources.DanceEditor; var random = new Random(); int randomInt = random.Next(0, 3); if (randomInt == 0) ProgramIdentity.Instance.SplashScreenImage = Properties.Resources.DanceEditor_splash; else if (randomInt == 1) ProgramIdentity.Instance.SplashScreenImage = Properties.Resources.DanceEditor_splash2; else if (randomInt == 2) ProgramIdentity.Instance.SplashScreenImage = Properties.Resources.DanceEditor_splash3; ProgramIdentity.Instance.UserDocumentationFile = @"https://mdc-web-tomcat17.ubisoft.org/confluence/display/jdh/DANCE+EDITOR"; } } }