コード例 #1
0
        public async void LoadEnrolments(int studentId)
        {
            if (DesignerProperties.GetIsInDesignMode(
                new System.Windows.DependencyObject())) return;

            _repo = new EnrolmentRepo();
            Enrolments = new ObservableCollection<Enrolment>(await _repo.GetEnrolmentsAsync(studentId));
        }
コード例 #2
0
        public async void LoadEnrolments(int studentId)
        {
            if (DesignerProperties.GetIsInDesignMode(
                    new System.Windows.DependencyObject()))
            {
                return;
            }

            _repo      = new EnrolmentRepo();
            Enrolments = new ObservableCollection <Enrolment>(await _repo.GetEnrolmentsAsync(studentId));
        }