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