Пример #1
0
 protected override void OnSizeChanged(EventArgs e)
 {
     if (AFToolBox != null)
     {
         AFToolBox.Location = new Point(this.Location.X, this.Location.Y + this.Size.Height);
         AFToolBox.Size     = new Size(this.Size.Width, AFToolBox.Size.Height);
     }
     SKHelper.SizeCheckAndRefresh(new Components.RawSize(this.Width, this.Height));
     SelectBitmap(SKHelper.CSharp_Bitmap);
 }
Пример #2
0
 protected override void OnPaint(PaintEventArgs pevent)
 {
     base.OnPaint(pevent);
     if (alpha > 0)
     {
         SKHelper.SizeCheckAndRefresh(new RawSize(this.Width, this.Height));
         SKHelper.DrawOnGraphics(pevent.Graphics, (SKCanvas canvas) =>
         {
             canvas.Clear(new SKColor(color.R, color.G, color.B, (byte)(((float)this.HighlightColor.A / 255) * alpha)));
         });
     }
 }