Exemple #1
0
 public new void Add(NamedProperty i_Property)
 {
     if (i_Property != null)
     {
         IObservablePropertySimpleSubscription subscribable = i_Property as IObservablePropertySimpleSubscription;
         if (subscribable != null)
         {
             subscribable.SimpleChangeSubscription += NotifyChange;
         }
     }
     base.Add(i_Property);
 }
Exemple #2
0
            public new bool Remove(NamedProperty i_Property)
            {
                bool result = base.Remove(i_Property);

                if (result)
                {
                    if (i_Property != null)
                    {
                        IObservablePropertySimpleSubscription subscribable = i_Property as IObservablePropertySimpleSubscription;
                        if (subscribable != null)
                        {
                            subscribable.SimpleChangeSubscription -= NotifyChange;
                        }
                    }
                }
                return(result);
            }