/// <summary>
        /// Called when the shape is added to the canvas.
        /// </summary>
        public void OnAddition()
        {
            Transform(new Rectangle(Rectangle.Location, new Size(150, FolderMaterial.HeaderHeight + 20)));
            //use a light color rather than the random low saturation color to show off the connection lines
            PaintStyle = ArtPalette.GetDefaultSolidPaintStyle();

            (PaintStyle as SolidPaintStyle).SolidColor = Color.WhiteSmoke;
        }
Exemple #2
0
        // -----------------------------------------------------------------
        /// <summary>
        /// Initializes this instance.
        /// </summary>
        // -----------------------------------------------------------------
        protected override void Initialize()
        {
            base.Initialize();

            PaintStyle       = ArtPalette.GetDefaultSolidPaintStyle();
            Resizable        = false;
            connector        = new Connector(new Point((int)(Rectangle.Left + Rectangle.Width / 2), Rectangle.Bottom), Model);
            connector.Name   = "Central connector";
            connector.Parent = this;
            Connectors.Add(connector);
        }