Пример #1
0
 private void btnAddEmployee_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AddEmployee form = new AddEmployee(Projects, null, _AddEmployeeHandler);
         form.ShowDialog();
         RefreshDataGrids();
     }
     catch (Exception) { }
 }
Пример #2
0
 private void btnEditEmployee_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         AddEmployee form = new AddEmployee(Projects, _selectedEmployee, _AddEmployeeHandler);
         form.ShowDialog();
         Employees.Remove(_selectedEmployee);
         RefreshDataGrids();
     }
     catch (Exception) { }
 }