Beispiel #1
0
 private void txtBoxCommand_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key is System.Windows.Input.Key.Enter)
     {
         string userInput = txtBoxCommand.Text;
         if (FileReader.CommandIsValid(userInput))
         {
             txtBoxCommand.Clear();
             lblMessage.Text = "";
             controller.PerformCommand(userInput);
         }
     }
 }