예제 #1
0
 public void Close()
 {
     if (currentProcess != null)
     {
         if (isClosing)
         {
             Destroy();
             isClosing = false;
         }
         else
         {
             isClosing              = true;
             currentProcess.Exited -= process_Exited;
             currentPipe.Write("die");
         }
     }
 }
예제 #2
0
 public void SendKeyEvent(Keys key)
 {
     currentPipe?.Write("key", ((int)key).ToString());
 }