Beispiel #1
0
 public void CloseTVTest()
 {
     if (process != null && process.HasExited == false)
     {
         var cmdTvTest = new CtrlCmdUtil();
         cmdTvTest.SetPipeSetting("Global\\" + processType + "_Ctrl_BonConnect_" + process.Id, "\\\\.\\pipe\\" + processType + "_Ctrl_BonPipe_" + process.Id);
         cmdTvTest.SetConnectTimeOut(1000);
         cmdTvTest.SendViewAppClose();
     }
     process = null;
     if (Settings.Instance.NwTvMode == true)
     {
         cmd.SendNwTVClose();
     }
 }
Beispiel #2
0
 public void CloseTVTest()
 {
     if (processID != -1)
     {
         foreach (Process p in Process.GetProcesses())
         {
             if (p.Id == processID)
             {
                 if (String.Compare(p.ProcessName, "tvtest", true) == 0)
                 {
                     cmdTvTest.SetPipeSetting("Global\\TvTest_Ctrl_BonConnect_" + p.Id.ToString(), "\\\\.\\pipe\\TvTest_Ctrl_BonPipe_" + p.Id.ToString());
                     cmdTvTest.SetConnectTimeOut(1000);
                     cmdTvTest.SendViewAppClose();
                 }
                 break;
             }
         }
     }
     processID = -1;
     if (Settings.Instance.NwTvMode == true)
     {
         cmd.SendNwTVClose();
     }
 }