Пример #1
0
 // A static method to close the SplashScreen
 static public void CloseForm()
 {
     if (ms_frmSplash != null && ms_frmSplash.IsDisposed == false)
     {
         // Make it start going away.
         ms_frmSplash.m_dblOpacityIncrement = -ms_frmSplash.m_dblOpacityDecrement;
     }
     ms_oThread   = null; // we don't need these any more.
     ms_frmSplash = null;
 }
Пример #2
0
 // A static method to close the SplashScreen
 static public void CloseForm()
 {
     try
     {
         if (ms_frmSplash != null && ms_frmSplash.IsDisposed == false)
         {
             // Make it start going away.
             ms_frmSplash.m_dblOpacityIncrement = -ms_frmSplash.m_dblOpacityDecrement;
         }
         ms_oThread   = null; // we don't need these any more.
         ms_frmSplash = null;
     }
     catch (Exception ex)
     {
         Tools.WriteToFile(Tools.errorFile, "CloseForm error: " + ex.Message + Environment.NewLine + ex.StackTrace);
     }
 }
Пример #3
0
 // A private entry point for the thread.
 static private void ShowForm()
 {
     ms_frmSplash = new SplashScreenNew();
     Application.Run(ms_frmSplash);
 }