using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace Autol
{
///
/// Summary description for UserControl.
///
public class PaintControl : System.Windows.Forms.UserControl
{
///
/// Required designer variable.
///
private System.ComponentModel.Container components = null;
public PaintControl()
{
// This call is required by the Windows.Forms Designer.
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
///
/// Clean up any resources being used.
///
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
components.Dispose();
}
base.Dispose(disposing);
}
private Brush brush = null;
protected override void OnPaint(PaintEventArgs e) {
base.OnPaint(e);
if (brush == null) {
brush = new SolidBrush(System.Drawing.Color.BlueViolet);
}
e.Graphics.FillEllipse(brush,this.ClientRectangle);
}
#region Component Designer generated code
///
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
///
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}