Esempio n. 1
0
        /// <summary>
        /// Deserialization constructor
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected Shape(SerializationInfo info, StreamingContext context)  : base(info, context)
        {
            mControls = new NetronGraphControlCollection();

            this.SetLayer(GraphAbstract.DefaultLayer);

            this.mCanMove = info.GetBoolean("mCanMove");

            this.mIsExpanded = info.GetBoolean("mIsExpanded");

            this.mIsFixed = info.GetBoolean("mIsFixed");

            this.mIsResizable = info.GetBoolean("mIsResizable");

            this.mIsVisible = info.GetBoolean("mIsVisible");

            this.mRectangle = (RectangleF)info.GetValue("mRectangle", typeof(RectangleF));

            this.mShapeColor = (Color)info.GetValue("mShapeColor", typeof(Color));

            this.mZOrder = info.GetInt32("mZOrder");

            try
            {
                this.mURL = info.GetString("mURL");
            }
            catch
            {
                this.mURL = "";
            }

            //this.mConnectors = (ConnectorCollection) info.GetValue("mConnectors",typeof(ConnectorCollection));
            Tag = info.GetString("mLayer");

            LoadURLImage();
        }
Esempio n. 2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="site"></param>
 protected Shape(IGraphSite site) : base(site)
 {
     mControls = new NetronGraphControlCollection();
 }
Esempio n. 3
0
        /// <summary>
        /// Default constructor
        /// </summary>
        protected Shape() : base()
        {
            mControls = new NetronGraphControlCollection();

            LoadURLImage();
        }