Exemple #1
0
 private static void WndKeyPressed(object sender, Common.EventArgs.KeyPressedEventArgs e)
 {
     if (e.KeyInfo.Key == ConsoleKey.Escape)
     {
         (sender as Window)?.Close();
     }
 }
Exemple #2
0
 private static void DialogFormKeyPressed(object sender, Common.EventArgs.KeyPressedEventArgs e)
 {
     if (e.KeyInfo.Key == ConsoleKey.LeftArrow)
     {
         var wnd = sender as Window;
         wnd?.InputAction(new ConsoleKeyInfo(default, ConsoleKey.Tab, true, false, false));