Beispiel #1
0
 public void AddDepartment()
 {
     SelectedDepartments.Add(SelectedDepartmentToAdd);
     AvailableDepartments.Remove(SelectedDepartmentToAdd);
     NotifyOfPropertyChange(() => SelectedDepartments);
     NotifyOfPropertyChange(() => CanPrint);
     NotifyOfPropertyChange(() => CanReset);
 }
Beispiel #2
0
        private void OnNotSelectedDepartmentDoubleClickCommand()
        {
            var department = SelectedNotSelectedDepartment;

            if (department == null)
            {
                return;
            }
            NotSelectedDepartments.Remove(department);
            SelectedDepartments.Add(department);
            RaisePropertyChanged(() => SelectedDepartments);
            RaisePropertyChanged(() => NotSelectedDepartments);
        }