public override void Destroy() { if (RepresentationModel != null) { RepresentationModel.Destroy(); } base.Destroy(); }
protected override void OnDestroyed() { logger.Debug("{0} called Destroy()", this.GetType()); if (RepresentationModel != null) { RepresentationModel.Destroy(); } base.OnDestroyed(); }
protected override void OnDestroyed() { logger.Debug("EntryReferenceVM Destroyed() called."); //Отписываемся от событий. DomainModel.NotifyChange.NotifyConfiguration.Instance.UnsubscribeAll(this); if (subject is INotifyPropertyChanged) { (subject as INotifyPropertyChanged).PropertyChanged -= OnSubjectPropertyChanged; } if (RepresentationModel != null) { RepresentationModel.Destroy(); } base.OnDestroyed(); }
protected override void OnDestroyed() { logger.Debug("EntryReferenceVM Destroyed() called."); //Отписываемся от событий. if (subjectType != null) { IOrmObjectMapping map = OrmMain.GetObjectDescription(subjectType); map.ObjectUpdated -= OnExternalObjectUpdated; } if (subject is INotifyPropertyChanged) { (subject as INotifyPropertyChanged).PropertyChanged -= OnSubjectPropertyChanged; } if (RepresentationModel != null) { RepresentationModel.Destroy(); } base.OnDestroyed(); }