Пример #1
0
        private void ExecuteEdit(object p)
        {
            if (p != null && p is ExamPeriod)
            {
                var examPeriod = p as ExamPeriod;

                AddExamPeriodView view = new AddExamPeriodView(examPeriod);
                view.ShowDialog();
            }
        }
        public AddExamPeriodViewModel(AddExamPeriodView view, ExamPeriod editExamPeriod, IEventAggregator eventAggregator)
        {
            this.editExamPeriod  = editExamPeriod;
            this.view            = view;
            this.eventAggregator = eventAggregator;

            if (editExamPeriod != null)
            {
                Name        = editExamPeriod.Name;
                StartDate   = editExamPeriod.StartDate;
                EndDate     = editExamPeriod.EndDate;
                SchoolYear  = editExamPeriod.SchoolYear;
                IsActive    = editExamPeriod.IsActive;
                IsApsolvent = editExamPeriod.IsApsolvent;
            }
        }
Пример #3
0
        private void ExecuteOpen()
        {
            AddExamPeriodView view = new AddExamPeriodView();

            view.ShowDialog();
        }