Esempio n. 1
0
        private static void SetParent(object target, object parent)
        {
            IChildObject child = target as IChildObject;

            if (child != null)
            {
                child.Parent = parent;
            }
        }
Esempio n. 2
0
        private static StateDictionary CreateState(object target)
        {
            StateDictionary ret = new StateDictionary();

            IChildObject child = target as IChildObject;

            if (child != null)
            {
                ret.Add("parent", child.Parent);
            }

            return(ret);
        }
Esempio n. 3
0
 public ParentClass(IChildObject child)
 {
     Child = child;
     H.Activate(this);
 }