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; }
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)); }