1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/Server/FxControl.cs Fri Apr 15 14:32:45 2016 +0200
1.3 @@ -0,0 +1,33 @@
1.4 +using System;
1.5 +using System.Collections.Generic;
1.6 +using System.ComponentModel;
1.7 +using System.Drawing;
1.8 +using System.Data;
1.9 +using System.Linq;
1.10 +using System.Text;
1.11 +using System.Threading.Tasks;
1.12 +using System.Windows.Forms;
1.13 +
1.14 +namespace SharpDisplayManager
1.15 +{
1.16 + public partial class FxControl : UserControl
1.17 + {
1.18 + public FxControl()
1.19 + {
1.20 + InitializeComponent();
1.21 + }
1.22 +
1.23 + protected override void OnPaint(PaintEventArgs e)
1.24 + {
1.25 + // Call the OnPaint method of the base class.
1.26 + base.OnPaint(e);
1.27 +
1.28 + SolidBrush brush = new SolidBrush(Color.Blue);
1.29 + // Declare and instantiate a new pen.
1.30 + Pen myPen = new Pen(brush);
1.31 +
1.32 + // Draw an aqua rectangle in the rectangle represented by the control.
1.33 + e.Graphics.DrawRectangle(myPen, new Rectangle(new Point(0,0), this.Size - new Size(1,1)));
1.34 + }
1.35 + }
1.36 +}