コード例 #1
0
 public InstructorsViewModel()
 {
     instance = this;
     this.InstructorService = new InstructorService();
     this.RefreshCommand    = new Command(async() => await GetInstructors());
     this.RefreshCommand.Execute(null);
 }
コード例 #2
0
        public InstructorItemViewModel()
        {
            this.instructorService = new InstructorService();

            EditInstructorCommand   = new Command(async() => await EditInstructor());
            DeleteInstructorCommand = new Command(async() => await DeleteInstructor());
        }
コード例 #3
0
        public CreateInstructorViewModel()
        {
            this.instructorService = new InstructorService();
            this.SaveCommand       = new Command(async() => await CreateInstructor());

            this.IsRunning = false;
            this.IsEnabled = true;
        }
コード例 #4
0
        public EditInstructorViewModel(InstructorDTO instructor)
        {
            this.instructor = instructor;

            this.instructorService = new InstructorService();
            this.SaveCommand       = new Command(async() => await EditInstructor());

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