public void Show()
 {
     if (dw == null)
     {
         dw = new DebuggingWindow();
         if (dw.InvokeRequired)
         {
             dw.BeginInvoke(new InvokeDelegate(InvokeShow));
         }
         else
         {
             InvokeShow();
         }
     }
     else if (dw.IsDisposed)
     {
         dw = new DebuggingWindow();
         if (dw.InvokeRequired)
         {
             dw.BeginInvoke(new InvokeDelegate(InvokeShow));
         }
         else
         {
             InvokeShow();
         }
     }
     else if (!dw.Visible)
     {
         if (dw.InvokeRequired)
         {
             dw.BeginInvoke(new InvokeDelegate(InvokeShow));
         }
         else
         {
             InvokeShow();
         }
     }
 }
Example #2
0
 public ExecutionContext(DebuggingWindow win, OctoClient client)
 {
     this.Window = win;
     this.Client = client;
 }