コード例 #1
0
 public override void Destroy()
 {
     if (RepresentationModel != null)
     {
         RepresentationModel.Destroy();
     }
     base.Destroy();
 }
コード例 #2
0
        protected override void OnDestroyed()
        {
            logger.Debug("{0} called Destroy()", this.GetType());

            if (RepresentationModel != null)
            {
                RepresentationModel.Destroy();
            }
            base.OnDestroyed();
        }
コード例 #3
0
 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();
 }
コード例 #4
0
 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();
 }