Ejemplo n.º 1
0
        private void ExecuteEdit(object p)
        {
            if (p != null && p is StudyProgram)
            {
                var studyProgram = p as StudyProgram;

                AddStudyProgramView studyProgramView = new AddStudyProgramView(studyProgram);
                studyProgramView.ShowDialog();
            }
        }
Ejemplo n.º 2
0
        public AddStudyProgramViewModel(AddStudyProgramView view, StudyProgram editSP, IEventAggregator eventArgs)
        {
            this.editSP    = editSP;
            this.view      = view;
            this.eventArgs = eventArgs;

            Departments = new ObservableCollection <Department>(ServiceDataProvider.GetAllDepartments());

            if (editSP != null)
            {
                Name               = editSP.Name;
                DepartmentId       = editSP.DepartmentId;
                SelffinancedPlaces = editSP.SelffinancedPlaces;
                BudgetPlaces       = editSP.BudgetPlaces;
                Tuition            = editSP.Tuition;
            }
        }
Ejemplo n.º 3
0
        private void ExecuteOpening(object p)
        {
            AddStudyProgramView studyProgramView = new AddStudyProgramView();

            studyProgramView.ShowDialog();
        }