示例#1
0
 public void WinKey2(object sender, KeyPressEventArgs e)
 {
     Core_.CoreEvent("", (char)(e.KeyChar));
     if (!AppWorking)
     {
         Form_.Close();
     }
 }
示例#2
0
 public void WinKey1(object sender, KeyEventArgs e)
 {
     Core_.CoreEvent(e.KeyCode.ToString(), (char)(0));
     if (!AppWorking)
     {
         Form_.Close();
     }
 }
示例#3
0
        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();
        }