示例#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) { }
 }