/// <summary> /// Hides the Display. /// </summary> public void HideDisplay() { if (this.InvokeRequired) { HideDisplayCallback cb = new HideDisplayCallback(HideDisplay); this.Invoke(cb); } else { this.Hide(); } }
/// <summary> /// Shows the display. Should be called from the GUI thread. /// </summary> public void ShowDisplay() { if (this.InvokeRequired) { HideDisplayCallback cb = new HideDisplayCallback(ShowDisplay); this.Invoke(cb); } else { this.Show(); this.TopMost = true; } }
/// <summary> /// Hides the Display. /// </summary> public void HideDisplay() { if (this.InvokeRequired) { HideDisplayCallback cb = new HideDisplayCallback(HideDisplay); this.Invoke(cb); } else { this.TopMost = false; this.SendToBack(); this.Hide(); } }