protected override async void OnNew() { TArgs.TeacherId = null; EArgs.TeacherId = null; await TeacherDetailsViewModel.LoadAsync(TArgs); await TeacherEvaluationViewModel.LoadAsync(EArgs); }
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(); }
public async void OnSelected() { if (SelectedItem != null) { TArgs.TeacherId = SelectedItem.TeacherId; EArgs.TeacherId = SelectedItem.TeacherId; await TeacherEvaluationViewModel.LoadAsync(EArgs); await TeacherDetailsViewModel.LoadAsync(TArgs); } }