Server/FxControl.cs
author StephaneLenclud
Tue, 16 Aug 2016 12:59:32 +0200
changeset 235 ba14a29944c4
permissions -rw-r--r--
Removing JSON type converter from ear manager.
Using bindings for some application settings.
     1 using System;
     2 using System.Collections.Generic;
     3 using System.ComponentModel;
     4 using System.Drawing;
     5 using System.Data;
     6 using System.Linq;
     7 using System.Text;
     8 using System.Threading.Tasks;
     9 using System.Windows.Forms;
    10 
    11 namespace SharpDisplayManager
    12 {
    13     public partial class FxControl : UserControl
    14     {
    15         public FxControl()
    16         {
    17             InitializeComponent();
    18         }
    19 
    20         protected override void OnPaint(PaintEventArgs e)
    21         {
    22             // Call the OnPaint method of the base class.
    23             base.OnPaint(e);
    24 
    25             SolidBrush brush = new SolidBrush(Color.Blue);
    26             // Declare and instantiate a new pen.
    27             Pen myPen = new Pen(brush);
    28 
    29             // Draw an aqua rectangle in the rectangle represented by the control.
    30             e.Graphics.DrawRectangle(myPen, new Rectangle(new Point(0,0), this.Size - new Size(1,1)));            
    31         }
    32     }
    33 }