Exemplo n.º 1
0
        protected bool UnregisterChild(ActiveModel child) //?
        {
            if (_children.Remove(child))                  //lock?
            {
                child.PropertyChanged  -= this.ChildPropertyChanged;
                child.PropertyChanging -= this.ChildPropertyChanging;
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
        protected bool RegisterChild(ActiveModel child) //?
        {
            if (_children.Add(child))                   //lock? gaurd against null
            {
                child.PropertyChanging += this.ChildPropertyChanging;
                child.PropertyChanged  += this.ChildPropertyChanged;
                return(true);
            }

            return(false);
        }
Exemplo n.º 3
0
 protected virtual void OnChildPropertyChanged(ActiveModel child, string propertyName)//?
 {
 }