public ViewStudyGroupDetailsViewModel(StudyGroupView studyGroupView, IPageService pageService) { _pageService = pageService; HandleAddCommandButtonCommand = new Command(HandlePostNewCommand); NewComment = new StudyGroupComment(); HandleSeeAllAttendantsCommand = new Command(HandleSeeAllAttendants); AttendButtonCaption = "Join"; CommentsEmpty = false; StudyGroupView = studyGroupView; GetMiniStudentViewAttendants(); GetComments(); InitIsAttendantAsync(); HandleAttendantButtonCommand = new Command(HandleAttendantButton); }
public void HandleViewStudyGroup(StudyGroupView studyGroupClicked) { _pageService.PushAsync(new Views.StudyGroups.ViewStudyGroupDetails(studyGroupClicked)); }
public void ViewSGTapped(StudyGroupView studyGroup) { _pageService.PushAsync(new Views.StudyGroups.ViewStudyGroupDetails(studyGroup)); }
public ViewStudyGroupDetails(StudyGroupView studyGroup) { InitializeComponent(); BindingContext = new ViewStudyGroupDetailsViewModel(studyGroup, new PageService()); }