private void btnAddEmployee_Click(object sender, RoutedEventArgs e) { try { AddEmployee form = new AddEmployee(Projects, null, _AddEmployeeHandler); form.ShowDialog(); RefreshDataGrids(); } catch (Exception) { } }
private void btnEditEmployee_Click(object sender, RoutedEventArgs e) { try { AddEmployee form = new AddEmployee(Projects, _selectedEmployee, _AddEmployeeHandler); form.ShowDialog(); Employees.Remove(_selectedEmployee); RefreshDataGrids(); } catch (Exception) { } }