public void WinKey2(object sender, KeyPressEventArgs e) { Core_.CoreEvent("", (char)(e.KeyChar)); if (!AppWorking) { Form_.Close(); } }
public void WinKey1(object sender, KeyEventArgs e) { Core_.CoreEvent(e.KeyCode.ToString(), (char)(0)); if (!AppWorking) { Form_.Close(); } }
public override void StartApp() { if (ConIEnc != "") { Console.InputEncoding = StrToEnc(ConIEnc); } if (ConOEnc != "") { Console.OutputEncoding = StrToEnc(ConOEnc); } WinW = -1; WinH = -1; AppWorking = true; Core_.WindowResize(); Core_.ScreenRefresh(true); while (AppWorking) { ConsoleKeyInfo CKI = Console.ReadKey(true); Core_.CoreEvent(CKI.Key.ToString(), CKI.KeyChar); } Console.Clear(); }