Пример #1
0
        public MainViewModel(IPeopleDataService peopleDataService)
        {
            _peopleDataService = peopleDataService;

            SaveCommand        = new DelegateCommand(OnSaveExecute, OnSaveCanExecute);
            ResetCommand       = new DelegateCommand(OnResetExecute, OnResetCanExecute);
            AddEmailCommand    = new DelegateCommand(OnAddEmailExecute);
            RemoveEmailCommand = new DelegateCommand(OnRemoveEmailExecute, OnRemoveEmailCanExecute);

            People = new ObservableCollection <PersonWrapper>();
            Emails = new ObservableCollection <EmailWrapper>();
        }
Пример #2
0
 public PeopleDataController(IPeopleDataService peopleDataService)
 {
     this.peopleDataService = peopleDataService;
 }
Пример #3
0
 public PeopleController(IPeopleDataService peopleDataService)
 {
     _peopleDataService = peopleDataService;
 }