protected override async void OnNew() { SArgs.StudentId = null; EArgs.StudentId = null; await StudentDetailsViewModel.LoadAsync(SArgs); await StudentEvaluationViewModel.LoadAsync(EArgs); }
public StudentListViewModel(IDialogService dialogService, IStudentService studentService, IStudentEvaluationService studentEvaluationService) : base(dialogService) { StudentService = studentService; StudentDetailsViewModel = new StudentDetailsViewModel(studentService, dialogService); StudentEvaluationViewModel = new StudentEvaluationViewModel(studentEvaluationService, dialogService); SArgs = new StudentDetailsArgs(); EArgs = new StudentEvaluationArgs(); }
public async void OnSelected() { if (SelectedItem != null) { SArgs.StudentId = SelectedItem.StudentId; EArgs.StudentId = SelectedItem.StudentId; await StudentDetailsViewModel.LoadAsync(SArgs); await StudentEvaluationViewModel.LoadAsync(EArgs); } }