/// <summary> /// Hide all pages and show the default page (player tab) /// </summary> public void ShowDefaultPages() { WaitControl.Invoke(new Action(() => WaitControl.Visible = false)); PlayerControl.Invoke(new Action(() => PlayerControl.Visible = false)); GraphicsControl.Invoke(new Action(() => GraphicsControl.Visible = false)); ViewmodelControl.Invoke(new Action(() => ViewmodelControl.Visible = false)); VisionControl.Invoke(new Action(() => VisionControl.Visible = false)); b0.Invoke(new Action(() => b0_Click(null, null))); }
/// <summary> /// Hide all pages. /// </summary> /// <param name="isWaitPage">Show the wait pages</param> public void HidePages(bool isWaitPage) { if (isWaitPage) { WaitControl.Invoke(new Action(() => WaitControl.Visible = true)); } else { WaitControl.Invoke(new Action(() => WaitControl.Visible = false)); } PlayerControl.Invoke(new Action(() => PlayerControl.Visible = false)); GraphicsControl.Invoke(new Action(() => GraphicsControl.Visible = false)); ViewmodelControl.Invoke(new Action(() => ViewmodelControl.Visible = false)); VisionControl.Invoke(new Action(() => VisionControl.Visible = false)); }