コード例 #1
0
        public FacultyViewModel(IUserInterop userInterop, IControllerInterop controllerInterop, Dispatcher dispatcher, FacultyDTO faculty)
            : base(userInterop, controllerInterop, dispatcher)
        {
            institutes = new List<InstituteDTO>();

            originalEntity = faculty;
        }
コード例 #2
0
        public FacultyModel(FacultyDTO faculty)
            : base(faculty)
        {
            institute = faculty.Institute;
            specializations = faculty.Specializations.ToModelList<SpecializationModel, SpecializationDTO>();

            specializations.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(specializations_CollectionChanged);
            foreach(SpecializationModel model in specializations)
                model.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(model_PropertyChanged);
        }