예제 #1
0
 public UsersBoughtCoursesDetailVM(MCourse course, INavigation nav)
 {
     this.Navigation = nav;
     Course          = course;
     GetReview();
     ShowDetailCommand = new Command(async() => await ShowDetail());
 }
예제 #2
0
 public CourseSaleList(MUser user, MCourse course)
 {
     _user             = user;
     _course           = course;
     SignedInUser.User = _user;
     InitializeComponent();
 }
예제 #3
0
 public CourseAddCategoryForSubcategory(MUser user, MCourse course)
 {
     _course = course;
     _user   = user;
     CurrentCourse.Course = _course;
     SignedInUser.User    = _user;
     InitializeComponent();
 }
예제 #4
0
 public CourseList(MUser user, MCourse course)
 {
     _course              = course;
     _user                = user;
     SignedInUser.User    = _user;
     CurrentCourse.Course = _course;
     InitializeComponent();
 }
예제 #5
0
 public CourseDetailPage(MCourse course)
 {
     InitializeComponent();
     BindingContext = model = new CourseDetailVM(this.Navigation)
     {
         Course = course
     };
 }
예제 #6
0
        public PaymentPage(MCourse course, MUser user)
        {
            InitializeComponent();
            _user             = user;
            SignedInUser.User = user;
            var nav = new NavigationPage(new CoursesPage(_user));

            navigation     = nav.Navigation;
            BindingContext = model = new PaymentVM(navigation)
            {
                Course = course
            };
        }
예제 #7
0
        public static bool Remove(MCourse item)
        {
            var itemToRemove = LikedCourses.Where(i => i.CourseID == item.CourseID).FirstOrDefault();

            return(LikedCourses.Remove(itemToRemove));
        }
예제 #8
0
 public VideoPlayerPreviewVM(MCourse course)
 {
     Course = course;
 }
예제 #9
0
 public CourseDetailVM(MCourse course)
 {
     Course      = course;
     InitCommand = new Command(async() => await InitLectures());
 }
 public VideoPlayerPreviewPage(MCourse course)
 {
     InitializeComponent();
     BindingContext = model = new VideoPlayerPreviewVM(course);
 }
 public UserBoughtCoursesDetailPage(MCourse course)
 {
     InitializeComponent();
     BindingContext = model = new UsersBoughtCoursesDetailVM(course, this.Navigation);
 }