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));
        }
Esempio n. 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());
        }
Esempio n. 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());
        }
Esempio n. 5
0
        public ChangePasswordViewModel(IPageService pageService, IUserDialogs dialog)
        {
            _pageService        = pageService;
            _coordinatorService = new Helpers.Coordinator();
            _dialog             = dialog;

            SetLoggedCoordinator();

            ChangePasswordClickedCommand = new Command(UpdatePassword);
            CancelClickedCommand         = new Command(async() => await CancelAsync());
        }
        public ForumDetailViewModel(IPageService pageService)
        {
            _pageService       = pageService;
            EditCommand        = new Command(EditForum);
            PresenceCommand    = new Command(HandlePresence);
            DeleteCommand      = new Command(DeleteForum);
            coordinatorService = new Helpers.Coordinator();
            IsPast             = HasPassed();
            _forumService      = new Helpers.Forum();

            //GetConfirmation();
        }