Beispiel #1
0
        public BoxIconNode()
        {
            this.myTopLeftMargin = new SizeF(4f, 2f);
            this.myBottomRightMargin = new SizeF(4f, 2f);
            base.InternalFlags &= -17;
            base.InternalFlags |= 0x1020000;

            Dot.Utility.Media.Diagram.Shapes.RoundedRectangleGraph background = new Dot.Utility.Media.Diagram.Shapes.RoundedRectangleGraph();
            background.Corner = new SizeF(3f, 3f);
            background.Brush = System.Drawing.Brushes.WhiteSmoke;
            background.Pen = new Pen(System.Drawing.Brushes.DarkBlue);
            background.Pen.Width = 1.5F;
            background.Selectable = false;
            this.myBack = background;
            this.Add(this.myBack);

            this.myLabel = this.CreateLabel();
            this.Label.Selectable = false;
            this.Label.Alignment = 1;
            this.Add(this.myLabel);

            base.Initializing = false;

            this.LayoutChildren(null);
        }
Beispiel #2
0
        public BoxIconNode()
        {
            this.myTopLeftMargin     = new SizeF(4f, 2f);
            this.myBottomRightMargin = new SizeF(4f, 2f);
            base.InternalFlags      &= -17;
            base.InternalFlags      |= 0x1020000;

            Dot.Utility.Media.Diagram.Shapes.RoundedRectangleGraph background = new Dot.Utility.Media.Diagram.Shapes.RoundedRectangleGraph();
            background.Corner     = new SizeF(3f, 3f);
            background.Brush      = System.Drawing.Brushes.WhiteSmoke;
            background.Pen        = new Pen(System.Drawing.Brushes.DarkBlue);
            background.Pen.Width  = 1.5F;
            background.Selectable = false;
            this.myBack           = background;
            this.Add(this.myBack);

            this.myLabel          = this.CreateLabel();
            this.Label.Selectable = false;
            this.Label.Alignment  = 1;
            this.Add(this.myLabel);

            base.Initializing = false;

            this.LayoutChildren(null);
        }