private void BtnEditEmployee_Click(object sender, RoutedEventArgs e) { var employee = lvEmployees.SelectedItems[0] as Employee; bool?result = new AddEmployee(employee) { Owner = this }.ShowDialog(); }
private void BtnAddEmployee_Click(object sender, RoutedEventArgs e) { var result = new AddEmployee() { Owner = this }.ShowDialog(); if (result == false) { // Update ListView lvEmployees.ItemsSource = GetEmployeesFromRepository(); } }