コード例 #1
0
 void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     System.Diagnostics.Trace.WriteLine("SimPe.WaitingScreen.frm_FormClosed(...)");
     Application.UseWaitCursor = false;
     lock (lockFrm)
     {
         frm = null;
         lock (lockScr)
         {
             scr = null;
         }
     }
     count = 0;
 }
コード例 #2
0
 private WaitingScreen()
 {
     System.Diagnostics.Trace.WriteLine("SimPe.WaitingScreen..ctor(): " + count);
     if (Helper.WindowsRegistry.WaitingScreen)
     {
         lock (lockFrm)
         {
             frm = new SimPe.WaitingForm();
             System.Diagnostics.Trace.WriteLine("SimPe.WaitingScreen..ctor() - created new SimPe.WaitingForm()");
             frm.FormClosed += new FormClosedEventHandler(frm_FormClosed);
             prevImage       = frm.Image;
             prevMessage     = frm.Message;
             doUpdate(prevImage, prevMessage);
             System.Diagnostics.Trace.WriteLine("SimPe.WaitingScreen..ctor() - set frm.Image and frm.Message");
             //frm.StartSplash();
             //System.Diagnostics.Trace.WriteLine("SimPe.WaitingScreen..ctor() - returned from frm.StartSplash()");
         }
     }
 }