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);
 }
Ejemplo n.º 3
0
        public CreateStudentViewModel()
        {
            this.studentService = new StudentService();
            this.SaveCommand    = new Command(async() => await CreateStudent());

            this.IsRunning = false;
            this.IsEnabled = true;
        }
Ejemplo n.º 4
0
        public StudentsViewModel(CourseDTO course)
        {
            this.course = course;

            this.studentService = new StudentService();
            this.RefreshCommand = new Command(async() => await GetStudentsByCourse());
            this.RefreshCommand.Execute(null);
        }
Ejemplo n.º 5
0
        public EditStudentViewModel(StudentDTO student)
        {
            this.student = student;

            this.studentService = new StudentService();
            this.SaveCommand    = new Command(async() => await EditStudent());

            this.IsRunning = false;
            this.IsEnabled = true;
        }