Пример #1
0
 /// <summary>
 /// 关闭winform程序的摄像机界面
 /// </summary>
 public void closeCameraUI()
 {
     if (kbpr != null && !kbpr.HasExited)
     {
         kbpr.Kill();
         ToolControlTaskBar.ShowTaskBar();
     }
 }
Пример #2
0
 /// <summary>
 /// 打开winform程序的摄像机界面
 /// </summary>
 /// <param name="path"></param>
 public void openCameraUI(string path)
 {
     kbpr = new Process();
     kbpr.StartInfo.FileName = path;
     kbpr.Start();
     SetWindowPos(kbpr.MainWindowHandle, -1, 880, 500, -5, 500, 1 | 2);
     SetWindowLong(kbpr.MainWindowHandle, GWL_STYLE, WS_BORDER);
     SetForegroundWindow(kbpr.MainWindowHandle);
     ToolControlTaskBar.HideTaskBar();
 }
 void OnApplicationQuit()
 {
     ToolControlTaskBar.ShowTaskBar();
 }
 void Start()
 {
     ///HideTaskBar
     ToolControlTaskBar.HideTaskBar();
 }
Пример #5
0
 private void OnDestroy()
 {
     ToolControlTaskBar.ShowTaskBar();
 }