예제 #1
0
 protected override void SetEditorFromLayout(IGraphSceneLayout <IVisual, IVisualEdge> layout)
 {
     disableChanges       = true;
     this.Distance        = layout.Distance;
     this.Dimension       = layout.Dimension;
     this.Centered        = layout.Centered;
     this.LayoutBackColor = GdiConverter.ToGdi(layout.StyleSheet.BackColor);
     disableChanges       = false;
 }
예제 #2
0
            public virtual void OnPaint(System.Windows.Forms.PaintEventArgs e)
            {
                var g = e.Graphics;

                var b = new SolidBrush(GdiConverter.ToGdi(BackColor()));

                g.FillRectangle(b, e.ClipRectangle);

                Layer.OnPaint(Converter.Convert(e));
            }