public StudentItemViewModel() { this.studentService = new StudentService(); EditStudentCommand = new Command(async() => await EditStudent()); DeleteStudentCommand = new Command(async() => await DeleteStudent()); }
public StudentsViewModel() { instance = this; this.studentService = new StudentService(); this.RefreshCommand = new Command(async() => await GetStudent()); this.RefreshCommand.Execute(null); }
public CreateStudentViewModel() { this.studentService = new StudentService(); this.SaveCommand = new Command(async() => await CreateStudent()); this.IsRunning = false; this.IsEnabled = true; }
public StudentsViewModel(CourseDTO course) { this.course = course; this.studentService = new StudentService(); this.RefreshCommand = new Command(async() => await GetStudentsByCourse()); this.RefreshCommand.Execute(null); }
public EditStudentViewModel(StudentDTO student) { this.student = student; this.studentService = new StudentService(); this.SaveCommand = new Command(async() => await EditStudent()); this.IsRunning = false; this.IsEnabled = true; }