Exemplo n.º 1
0
 private void MenuItem_Click(object sender, RoutedEventArgs e)
 {
     Show();
     WindowState = WindowState.Normal;
     CommandBox.Focus();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Occurs when the form is shown on the screen.
 /// </summary>
 private void Run_Shown(object sender, EventArgs e)
 {
     // Ensure that the window and text area both have focus when the window comes into view.
     Activate();
     CommandBox.Focus();
 }