//public event PropertyChangedEventHandler PropertyChanged = delegate { }; public OrganizerListViewModel(IOrganizersRepository repo) { _repo = repo; //if (DesignerProperties.GetIsInDesignMode( // new System.Windows.DependencyObject())) return; //Organizers = new ObservableCollection<Organizer>(_repo.GetOrganizersAsync().Result); DeleteCommand = new RelayCommand(OnDelete, CanDelete); AddOrganizerCommand = new RelayCommand(OnAddOrganizer); EditOrganizerCommand = new RelayCommand <Organizer>(OnEditOrganizer); ClearSearchCommand = new RelayCommand(OnClearSearch); }
public CreateOrganizerCommandHandler(IOrganizersRepository repository) { _repository = repository; }
public OrganizerFormViewModel(IOrganizersRepository repo) { _repo = repo; CancelCommand = new RelayCommand(OnCancel); SaveCommand = new RelayCommand(OnSave, CanSave); }
public GetOrganizerQueryHandler(IOrganizersRepository repository) { _repository = repository; }