public void RemoveEmployee() { AvailableEmployees.Add(SelectedEmployeeToRemove); SelectedEmployees.Remove(SelectedEmployeeToRemove); NotifyOfPropertyChange(() => SelectedEmployees); NotifyOfPropertyChange(() => CanPrint); NotifyOfPropertyChange(() => CanReset); }
public void RemoveEmployee() { foreach (var item in SelectedEmployees.Where(x => x.IsSelected).Reverse()) { SelectedEmployeeToRemove.IsSelected = false; AvailableEmployees.Add(SelectedEmployeeToRemove); SelectedEmployees.Remove(SelectedEmployeeToRemove); } NotifyOfPropertyChange(() => SelectedEmployees); NotifyOfPropertyChange(() => AvailableEmployees); NotifyOfPropertyChange(() => CanSave); NotifyOfPropertyChange(() => CanReset); SortEmployees(SelectedEmployees); SortEmployees(AvailableEmployees); }
private void RemoveEmployee() { SelectedEmployees.Remove(SelectedEp); }