Example #1
0
 public CBaseElement(CKey parent, SPosition pos)
 {
     _parent = parent;
     if (_parent != null)
     {
         _parent.AddChild(this);
     }
     _pos = pos;
 }
Example #2
0
        public void SetParent(CKey parent)
        {
            if (_parent != null)
            {
                _parent.RemoveChild(this);
            }

            _parent = parent;
            if (_parent != null)
            {
                _parent.AddChild(this);
            }
        }