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(); } } }
public ExecutionContext(DebuggingWindow win, OctoClient client) { this.Window = win; this.Client = client; }