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)); }
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()); }
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()); }