Example #1
0
        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));
 }
Example #3
0
 public void ViewSGTapped(StudyGroupView studyGroup)
 {
     _pageService.PushAsync(new Views.StudyGroups.ViewStudyGroupDetails(studyGroup));
 }
        public ViewStudyGroupDetails(StudyGroupView studyGroup)
        {
            InitializeComponent();

            BindingContext = new ViewStudyGroupDetailsViewModel(studyGroup, new PageService());
        }