Пример #1
0
 // Methods
 public Shape()
 {
     base.Paint          += new PaintEventHandler(this.Shape_Paint);
     this._Corners        = new CornersProperty();
     this._FocalPoints    = new cFocalPoints(0.5, 0.5, 0.0, 0.0);
     this._BorderStyle    = DashStyle.Solid;
     this._RadiusInner    = 0f;
     this._BorderShow     = true;
     this._BorderWidth    = 2f;
     this._ColorFillSolid = SystemColors.Control;
     Color[] S0 = new Color[] { Color.White, Color.White };
     this._ColorFillBlend = new cBlendItems(S0, new float[] { 0f, 1f });
     this._FillType       = eFillType.Solid;
     this._FillTypeLinear = LinearGradientMode.Horizontal;
     this._BorderColor    = Color.Black;
     this._RegionClip     = false;
     this.InitializeComponent();
     this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }
Пример #2
0
 // Methods
 public Shape()
 {
     base.Paint += new PaintEventHandler(this.Shape_Paint);
     this._Corners = new CornersProperty();
     this._FocalPoints = new cFocalPoints(0.5, 0.5, 0.0, 0.0);
     this._BorderStyle = DashStyle.Solid;
     this._RadiusInner = 0f;
     this._BorderShow = true;
     this._BorderWidth = 2f;
     this._ColorFillSolid = SystemColors.Control;
     Color[] S0 = new Color[] { Color.White, Color.White };
     this._ColorFillBlend = new cBlendItems(S0, new float[] { 0f, 1f });
     this._FillType = eFillType.Solid;
     this._FillTypeLinear = LinearGradientMode.Horizontal;
     this._BorderColor = Color.Black;
     this._RegionClip = false;
     this.InitializeComponent();
     this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);
     this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
 }