예제 #1
0
        //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);
        }
예제 #2
0
 public CreateOrganizerCommandHandler(IOrganizersRepository repository)
 {
     _repository = repository;
 }
 public OrganizerFormViewModel(IOrganizersRepository repo)
 {
     _repo         = repo;
     CancelCommand = new RelayCommand(OnCancel);
     SaveCommand   = new RelayCommand(OnSave, CanSave);
 }
예제 #4
0
 public GetOrganizerQueryHandler(IOrganizersRepository repository)
 {
     _repository = repository;
 }