private void Add_click(object sender, RoutedEventArgs e) { Add_window add_ = new Add_window(null); if (add_.ShowDialog() == true) { employees.Clear(); WorkWithServer("Emp"); } }
private void Edit_click(object sender, RoutedEventArgs e) { var tmpEmp = (EmployeeDTO)lbEmploy.SelectedItem; Add_window add = new Add_window(tmpEmp); if (add.ShowDialog() == true) { //employees.Clear(); WorkWithServer("Emp"); } }