public SplashForm(string[] args) { // // Required for Windows Form Designer support // InitializeComponent(); StartTimer.Enabled = true; StartTimer.Start(); mCommandLineArgs = args; mInitializationComplete = false; this.Load += new System.EventHandler(this.Form1_Load); #if MOG_LIBRARY pictureBox1.Image = global::MOG_Client.Properties.Resources.SplashClientLibrary; #else // Are we a full version? if (MOG_Main.IsLicensed()) { pictureBox1.Image = global::MOG_Client.Properties.Resources.Splash_Client_2005; //SplashLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(96)))), ((int)(((byte)(159))))); //VersionLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(73)))), ((int)(((byte)(126))))); } else { // Load the light splash pictureBox1.Image = global::MOG_Client.Properties.Resources.Spash_Client_2005Light; VersionLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(117)))), ((int)(((byte)(190))))); SplashLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(121)))), ((int)(((byte)(238))))); } #endif // Setup our version number tempVersion = "Debug build"; // Make sure this isn't within our debug directory... if (!Application.StartupPath.EndsWith("\\bin\\Debug", StringComparison.CurrentCultureIgnoreCase)) { FileVersionInfo file = FileVersionInfo.GetVersionInfo(Application.ExecutablePath); if (file != null) { tempVersion = file.FileVersion; } } VersionLabel.Text = tempVersion; }
public SplashForm(string[] args) { // // Required for Windows Form Designer support // InitializeComponent(); StartTimer.Enabled = true; StartTimer.Start(); mCommandLineArgs = args; mInitializationComplete = false; this.Load += new System.EventHandler(this.Form1_Load); // Are we a full version? if (MOG_Main.IsLicensed()) { pictureBox1.Image = global::MOG_ServerManager.Properties.Resources.Splash_Server_Manager_2005; //SplashLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(39)))), ((int)(((byte)(96)))), ((int)(((byte)(159))))); //VersionLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(26)))), ((int)(((byte)(73)))), ((int)(((byte)(126))))); } else { // Load the light splash pictureBox1.Image = global::MOG_ServerManager.Properties.Resources.Splash_Server_Manager_2005L; VersionLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(117)))), ((int)(((byte)(190))))); SplashLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(10)))), ((int)(((byte)(121)))), ((int)(((byte)(238))))); } // Setup our version number FileVersionInfo file = FileVersionInfo.GetVersionInfo(Application.ExecutablePath); if (file != null) { tempVersion = file.FileVersion; if (tempVersion == "3.0.0.0") { tempVersion = "Debug build"; } } VersionLabel.Text = tempVersion; }