示例#1
0
 /// <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)));
 }
示例#2
0
 protected void SetProgress(string msg, int precent)
 {
     if (_waitCtl.InvokeRequired)
     {
         //_waitCtl.Invoke(new Action<string , int>(SetProgress), new object[] { msg, precent });
         _waitCtl.Invoke(new ProgressHandler(SetProgress), new object[] { msg, precent });
     }
     else
     {
         _waitCtl.SetMessage(msg, precent);
     }
 }
示例#3
0
 /// <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));
 }