Exemple #1
0
 //вызов окна редактирования
 private void RefreshBtn_Click(object sender, RoutedEventArgs e)
 {
     if (winEmployee != null)
     {
         try
         {
             winEmployee.Show();
         }
         catch
         {
             winEmployee = new EmployeeWindow();
             winEmployee.Show();
         }
     }
     else
     {
         winEmployee = new EmployeeWindow();
         winEmployee.Show();
     }
 }
Exemple #2
0
 //вызов окна редактирования
 private void Lb_GotMouseCapture(object sender, MouseEventArgs e)
 {
     if (winEmployee != null)
     {
         try
         {
             winEmployee.Show();
         }
         catch
         {
             winEmployee = new EmployeeWindow();
             winEmployee.Show();
         }
     }
     else
     {
         winEmployee = new EmployeeWindow();
         winEmployee.Show();
     }
 }