private void button_start_Click(object sender, RoutedEventArgs e)
 {
     if (windowBegin == null)
     {
         windowBegin = new Begin_work_with.MainWindow();
         windowBegin.Closed += (obj_sender, args) => windowBegin = null;
         windowBegin.Owner = this;
         windowBegin.Show();
     }
     windowBegin.Focus();
 }
Exemple #2
0
 private void button_start_Click(object sender, RoutedEventArgs e)
 {
     if (windowBegin == null)
     {
         windowBegin         = new Begin_work_with.MainWindow();
         windowBegin.Closed += (obj_sender, args) => windowBegin = null;
         windowBegin.Owner   = this;
         windowBegin.Show();
     }
     windowBegin.Focus();
 }