public CoursesViewModel() { instance = this; this.courseService = new CourseService(); this.RefreshCommand = new Command(async() => await GetCourses()); this.RefreshCommand.Execute(null); }
public CourseItemViewModel() { this.courseService = new CourseService(); EditCourseCommand = new Command(async() => await EditCourse()); DeleteCourseCommand = new Command(async() => await DeleteCourse()); }
public CreateCourseViewModel() { this.courseService = new CourseService(); this.SaveCommand = new Command(async() => await CreateCourse()); this.IsRunning = false; this.IsEnabled = true; }
public EditCourseViewModel(CourseDTO course) { this.course = course; this.courseService = new CourseService(); this.SaveCommand = new Command(async() => await EditCourse()); this.IsRunning = false; this.IsEnabled = true; }