public UserDetailViewModel(IPageService PageService)
 {
     _pageService          = PageService;
     EditCommand           = new Command(EditUser);
     DeleteCommand         = new Command(DeleteUser);
     _administratorService = new Helpers.Administrator();
     _coordinatorService   = new Helpers.Coordinator();
 }
        private UsersViewModel(IPageService pageService)
        {
            _pageService          = pageService;
            _coordinatorService   = new Helpers.Coordinator();
            _administratorService = new Helpers.Administrator();

            SelectAdministratorCommand = new Command <UserDetailViewModel>(async vm => await SelectAdministrator(vm));
            SelectCoordinatorCommand   = new Command <UserDetailViewModel>(async vm => await SelectCoordinator(vm));
        }
Пример #3
0
        public UserRegistrationViewModel(IPageService PageService)
        {
            _pageService          = PageService;
            _coordinatorService   = new Helpers.Coordinator();
            _administratorService = new Helpers.Administrator();

            RegisterNewUserCommand = new Command(async() => await RegisterNewUser());
            CancelCommand          = new Command(async() => await Cancel());
        }
Пример #4
0
        public UserEditViewModel(IPageService pageService, bool IsCoordinator)
        {
            _pageService          = pageService;
            _coordinatorService   = new Helpers.Coordinator();
            _administratorService = new Helpers.Administrator();
            isCoord = IsCoordinator;

            CancelCommand  = new Command(Cancel);
            ConfirmCommand = new Command(() => ConfirmEdition());
        }