Esempio n. 1
0
 public void RemoveEmployee()
 {
     AvailableEmployees.Add(SelectedEmployeeToRemove);
     SelectedEmployees.Remove(SelectedEmployeeToRemove);
     NotifyOfPropertyChange(() => SelectedEmployees);
     NotifyOfPropertyChange(() => CanPrint);
     NotifyOfPropertyChange(() => CanReset);
 }
Esempio n. 2
0
 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);
 }