コード例 #1
0
        public TeacherFormView()
        {
            teacherPresenter           = new TeacherFormPresenter();
            teacherSelectedId          = -1;
            assignedSubjectsCollection = new ObservableCollection <Subject>();
            subjectsCollection         = new ObservableCollection <Subject>(teacherPresenter.GetAllSubjects());
            DataContext = this;

            InitializeComponent();
        }
 public TeacherEditView(StudentBll studentBll, TeacherBll teacherBll)
 {
     InitializeComponent();
     _teacherFormPresenter = new TeacherFormPresenter(this, studentBll, teacherBll);
 }