Esempio n. 1
0
 public static void CloseLoading()
 {
     if (form != null)
     {
         form.Close();
     }
 }
Esempio n. 2
0
 private static void CloseForm()
 {
     if (timer != null)
     {
         timer.Dispose();
         timer = null;
     }
     if (form != null)
     {
         if (form.InvokeRequired)
         {
             form.Invoke(new MethodInvoker(delegate
             {
                 form.Close();
             }));
         }
         else
         {
             form.Close();
         }
     }
 }