/// <summary>
        /// Inserts a new object into the plex.
        /// </summary>
        /// <param name="so">the object to insert</param>
        /// <remarks>Note that you can add only one shape at a time.
        /// </remarks>
        internal protected void Insert(Shape so)
        {
            so.Insert(this);
            so.AddProperties();

            Site.RaiseOnShapeAdded(so);
        }
Esempio n. 2
0
        /// <summary>
        /// Inserts a new object into the plex.
        /// </summary>
        /// <param name="so">the object to insert</param>
        /// <remarks>Note that you can add only one shape at a time.
        /// </remarks>
        internal protected void Insert(Shape so)
        {
            //so.Insert(this);
            so.Site = Site;
            mShapes.Add(so);
            so.SetLayer(mCurrentLayer.Name);

            so.AddProperties();

            Site.RaiseOnShapeAdded(so);
        }