public ConsoleForWindowsApplication() { if (!ConsoleForWindowsApplication.AttachConsole(-1)) { ConsoleForWindowsApplication.AllocConsole(); } }
public void Dispose() { ConsoleForWindowsApplication.FreeConsole(); SendKeys.SendWait("{ENTER}"); }