Beispiel #1
0
        /// <summary>
        /// Make sure the <see cref="P:Northwoods.Go.GoBalloon.Anchor" /> is the copied object, and update the
        /// background polygon's shape appropriately.
        /// </summary>
        /// <param name="env"></param>
        /// <param name="newobj"></param>
        public override void CopyObjectDelayed(GoCopyDictionary env, GoObject newobj)
        {
            base.CopyObjectDelayed(env, newobj);
            GoBalloon obj = (GoBalloon)newobj;

            obj.myAnchor = (env[myAnchor] as GoObject);
            obj.UpdateRoute();
        }
Beispiel #2
0
        /// <summary>
        /// The <see cref="P:Northwoods.Go.GoBalloon.Anchor" /> object may or may not be copied;
        /// let <see cref="M:Northwoods.Go.GoBalloon.CopyObjectDelayed(Northwoods.Go.GoCopyDictionary,Northwoods.Go.GoObject)" /> handle it.
        /// </summary>
        /// <param name="env"></param>
        /// <returns></returns>
        public override GoObject CopyObject(GoCopyDictionary env)
        {
            GoBalloon obj = (GoBalloon)base.CopyObject(env);

            if (obj != null)
            {
                env.Delayeds.Add(this);
            }
            return(obj);
        }