public ForumsViewModel(IPageService pageService) { _pageService = pageService; _forumService = new Helpers.Forum(); _forumVisibility = true; _noForumWarning = false; SelectForumCommand = new Command <ForumDetailViewModel>(async vm => await SelectForum(vm)); }
public CoordinatorMasterPageViewModel(IPageService pageService) { ForumVisibility = false; NoForumWarning = false; _pageService = pageService; _forumService = new Helpers.Forum(); DetailPageCommand = new Command(SeeDetailPage); }
public ForumEditViewModel(IPageService pageService) { _pageService = pageService; _forumService = new Helpers.Forum(); CancelCommand = new Command(Cancel); ConfirmCommand = new Command(() => ConfirmEdition()); }
public NewForumViewModel(IUserDialogs dialog, IPageService pageService, IDatabase <Forum> forumDB) { _dialog = dialog; _pageService = pageService; _forumDB = forumDB; _forumService = new Helpers.Forum(); CancelCommand = new Command(Cancel); }
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(); }
public CoordinatorMasterPageViewModel(IPageService pageService) { ForumVisibility = false; NoForumWarning = false; ActivityIndicator = false; IsLoaded = false; _pageService = pageService; _forumService = new Helpers.Forum(); _formService = new Helpers.Form(); ForumDetailPageCommand = new Command(SeeForumDetailPage); FormDetailPageCommand = new Command(SeeFormDetailPage); ChangePasswordCommand = new Command(async() => await ChangePassword()); }