Ejemplo n.º 1
0
 /// <summary>Close the form</summary>
 public virtual void Close()
 {
     if (Thread == null)
     {
         throw new Exception("Tried to close gui before launching it");
     }
     if (IsAlive)
     {
         try {
             GenericForm.Invoke((Action)GenericForm.Close);
         } catch (ObjectDisposedException) {
             Console.WriteLine("Form was already closed");
         }
     }
 }