public SplashPiece(UserInterfaceForm parentForm, SplashInfo info)
 {
     this.info = info;
     base.SuspendLayout();
     this.InitializeComponent();
     this.InitializeContent();
     base.ResumeLayout(false);
     parentForm.SuspendLayout();
     parentForm.Text = Resources.GetString("UI_SplashTitle");
     parentForm.MinimizeBox = false;
     parentForm.MaximizeBox = false;
     parentForm.ControlBox = true;
     parentForm.ResumeLayout(false);
     this.splashTimer = new Timer();
     this.splashTimer.Tick += new EventHandler(this.SplashTimer_Tick);
     if (info.initializedAsWait)
     {
         this.splashTimer.Interval = 0x9c4;
         this.splashTimer.Tag = null;
         this.splashTimer.Enabled = true;
     }
     else
     {
         this.ShowSplash(parentForm);
     }
 }
Example #2
0
 public SplashPiece(UserInterfaceForm parentForm, SplashInfo info)
 {
     this.info = info;
     this.SuspendLayout();
     this.InitializeComponent();
     this.InitializeContent();
     this.ResumeLayout(false);
     parentForm.SuspendLayout();
     parentForm.Text        = Resources.GetString("UI_SplashTitle");
     parentForm.MinimizeBox = false;
     parentForm.MaximizeBox = false;
     parentForm.ControlBox  = true;
     parentForm.ResumeLayout(false);
     this.splashTimer       = new Timer();
     this.splashTimer.Tick += new EventHandler(this.SplashTimer_Tick);
     if (info.initializedAsWait)
     {
         this.splashTimer.Interval = 2500;
         this.splashTimer.Tag      = (object)null;
         this.splashTimer.Enabled  = true;
     }
     else
     {
         this.ShowSplash((Form)parentForm);
     }
 }
Example #3
0
 public UserInterface(bool wait)
 {
     this._splashInfo = new SplashInfo();
     this._splashInfo.initializedAsWait = wait;
     this._uiThread = new Thread(new ThreadStart(this.UIThread));
     this._uiThread.SetApartmentState(ApartmentState.STA);
     this._uiThread.Name = "UIThread";
     this._uiThread.Start();
 }
Example #4
0
 public UserInterfaceForm(ManualResetEvent readyEvent, SplashInfo splashInfo)
 {
     this.onLoadEvent     = readyEvent;
     this.splashPieceInfo = splashInfo;
     base.SuspendLayout();
     this.InitializeComponent();
     this.InitializeContent();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
 public UserInterfaceForm(ManualResetEvent readyEvent, SplashInfo splashInfo)
 {
     this.onLoadEvent = readyEvent;
     this.splashPieceInfo = splashInfo;
     base.SuspendLayout();
     this.InitializeComponent();
     this.InitializeContent();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
 public UserInterface(bool wait)
 {
     this._appctxExitThreadFinished = new ManualResetEvent(false);
     this._uiConstructed = new ManualResetEvent(false);
     this._uiReady = new ManualResetEvent(false);
     this._splashInfo = new SplashInfo();
     this._splashInfo.initializedAsWait = wait;
     this._uiThread = new Thread(new ThreadStart(this.UIThread));
     this._uiThread.SetApartmentState(ApartmentState.STA);
     this._uiThread.Name = "UIThread";
     this._uiThread.Start();
 }
 public UserInterface(bool wait)
 {
     this._appctxExitThreadFinished = new ManualResetEvent(false);
     this._uiConstructed            = new ManualResetEvent(false);
     this._uiReady    = new ManualResetEvent(false);
     this._splashInfo = new SplashInfo();
     this._splashInfo.initializedAsWait = wait;
     this._uiThread = new Thread(new ThreadStart(this.UIThread));
     this._uiThread.SetApartmentState(ApartmentState.STA);
     this._uiThread.Name = "UIThread";
     this._uiThread.Start();
 }