using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace Fusion_Control_Centre_UberMDX { public partial class SplashScreenForm : Form { #region Splash Screen Constructor public SplashScreenForm(Fusion_Control_Centre_UberMDX.MainMDX MyMomma) { MainMDX.Debug_VerboseLoggingEvent += new MainMDX.Debug_Delegate_VerboseLogging(ShowMeDaStuffz); InitializeComponent(); System.Reflection.Assembly CurrentAssembly = System.Reflection.Assembly.GetExecutingAssembly(); char[] splitparams = { ',' }; string[] assinfo = CurrentAssembly.FullName.Split(splitparams); foreach (string ass in assinfo) { if (ass.Replace(" ", "").StartsWith("Version=")) { string versionID = ass.Replace(" ", "").Substring("Version=".Length); TXT_VERSION.Text = versionID; TXT_VERSION.Update(); break; } } this.Opacity = 100; this.Show(); this.TopMost = true; this.Update(); } #endregion #region Show the Current Status Message public void ShowMeDaStuffz(string LoggingString) { TXT_LOGGING.Text = LoggingString; TXT_LOGGING.Update(); this.Update(); } #endregion #region Kill the Splash Screen public void Die() { this.Close(); } #endregion } }