Beispiel #1
0
        protected override async void OnNew()
        {
            TArgs.TeacherId = null;
            EArgs.TeacherId = null;
            await TeacherDetailsViewModel.LoadAsync(TArgs);

            await TeacherEvaluationViewModel.LoadAsync(EArgs);
        }
Beispiel #2
0
 public TeacherListViewModel(IDialogService dialogService, ITeacherService teacherService) : base(dialogService)
 {
     TeacherService             = teacherService;
     TeacherEvaluationViewModel = new TeacherEvaluationViewModel(dialogService, teacherService);
     TeacherDetailsViewModel    = new TeacherDetailsViewModel(dialogService, teacherService);
     TArgs = new TeacherDetailsArgs();
     EArgs = new TeacherEvaluationArgs();
 }
Beispiel #3
0
        public async void OnSelected()
        {
            if (SelectedItem != null)
            {
                TArgs.TeacherId = SelectedItem.TeacherId;
                EArgs.TeacherId = SelectedItem.TeacherId;
                await TeacherEvaluationViewModel.LoadAsync(EArgs);

                await TeacherDetailsViewModel.LoadAsync(TArgs);
            }
        }