public FacultyViewModel(IUserInterop userInterop, IControllerInterop controllerInterop, Dispatcher dispatcher, FacultyDTO faculty) : base(userInterop, controllerInterop, dispatcher) { institutes = new List<InstituteDTO>(); originalEntity = faculty; }
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); }