Esempio n. 1
0
 private void OKbutton_Click(object sender, System.EventArgs e)
 {
     // keep Kill up to date with this
     result  = inputBox.Text;
     current = null;
     this.Close();
 }
Esempio n. 2
0
 public static void Kill()
 {
     if (current != null)
     {
         // keep me up to date with OKbutton_Click
         // don't call that b/c of tasking.
         Object[] delegate3_args = new Object[1];
         //Object[] delegate_answer;
         delegate3_args[0] = current;
         current.Invoke(Kill_delegate, delegate3_args);
         current = null;
     }
 }
Esempio n. 3
0
 public string Go()
 {
     current = this;
     //causes tasking exception in .NET 2.0
     //this.ShowDialog(Runtime.parent);
     this.ShowDialog();
     // ok, so this code is a bit bizarre, but
     // resolves a bug (.NET?) where if the
     // parent window is minimized the dialog
     // was returning null immediately
     if (result == null)
     {
         this.ShowDialog();
     }
     return(result);
 }
Esempio n. 4
0
 public static void Kill_Delegate(PromptForm f)
 {
     f.result = "0";
     f.Close();
 }