Exemplo n.º 1
0
 public virtual bool Update(ConsoleController.KeyEvent keypress, bool hasKeypress = true)
 {
     if (keypress.ValidEvent && keypress.Event.Key == ConsoleKey.Escape)
     {
         OnDestroy();
     }
     return(controller.Dirty);
 }
Exemplo n.º 2
0
 public bool Update(ConsoleController.KeyEvent keypress, bool hasKeypress = true)
 => Current?.Update(keypress, hasKeypress) == true;