コード例 #1
0
        protected override async void OnNew()
        {
            SArgs.StudentId = null;
            EArgs.StudentId = null;
            await StudentDetailsViewModel.LoadAsync(SArgs);

            await StudentEvaluationViewModel.LoadAsync(EArgs);
        }
コード例 #2
0
 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();
 }
コード例 #3
0
        public async void OnSelected()
        {
            if (SelectedItem != null)
            {
                SArgs.StudentId = SelectedItem.StudentId;
                EArgs.StudentId = SelectedItem.StudentId;
                await StudentDetailsViewModel.LoadAsync(SArgs);

                await StudentEvaluationViewModel.LoadAsync(EArgs);
            }
        }