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; using JD.TeaBoxAddinSystem.Bootstrap; using TeaBox.Bootstrap; namespace TRec { static class Program { /// /// The main entry point for the application. /// [STAThread] static int Main(string[] arguments) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); return new TrecStartup(arguments).Start(); } public class TrecStartup : GenericApplicationStartup { public TrecStartup(string[] arguments, RuntimeMode runtimeMode = RuntimeMode.Normal) : base(arguments, true, runtimeMode) { } static TrecStartup() { ProgramIdentity.Instance.Name = "TRec"; ProgramIdentity.Instance.Icon = Properties.Resources.TRec; Bitmap splash = Properties.Resources.TRec_splash; if (DateTime.Now.Second == 42) { splash = Properties.Resources.TRec_splash_JD5; } else if (DateTime.Now.Second <= 10) { splash = Properties.Resources.TRec_splash_pink; } ProgramIdentity.Instance.SplashScreenImage = splash; ProgramIdentity.Instance.DocumentationFile = ""; ProgramIdentity.Instance.UserDocumentationFile = @"https://mdc-web-tomcat17.ubisoft.org/confluence/display/jdh/T-REC"; } } } }