using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WidgetsDemo
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
    private PerpetuumSoft.Widgets.Matrix matrix1;
    private PerpetuumSoft.Widgets.MultimediaButton multimediaButton1;
    private PerpetuumSoft.Widgets.MultimediaButton multimediaButton2;
    private PerpetuumSoft.Widgets.Dial dial2;
    private PerpetuumSoft.Widgets.Slider slider1;
    private PerpetuumSoft.Widgets.LevelSlider levelSlider1;
    private PerpetuumSoft.Widgets.LevelSlider levelSlider2;
    private PerpetuumSoft.Widgets.DigitalClock digitalClock1;
    private PerpetuumSoft.Widgets.Oscilloscope oscilloscope1;
    private PerpetuumSoft.Widgets.Meter meter1;
    private PerpetuumSoft.Widgets.LevelBar levelBar1;
    private PerpetuumSoft.Widgets.LevelBar levelBar2;
    private PerpetuumSoft.Widgets.Toggle toggle1;
    private PerpetuumSoft.Widgets.Toggle toggle2;
    private PerpetuumSoft.Widgets.MultimediaButton multimediaButton3;
    private PerpetuumSoft.Widgets.MultimediaButton multimediaButton4;
    private PerpetuumSoft.Widgets.Switch switch4;
    private PerpetuumSoft.Widgets.Switch switch5;
    private PerpetuumSoft.Widgets.Switch switch6;
    private PerpetuumSoft.Widgets.RotarySlider rotarySlider1;
    private PerpetuumSoft.Widgets.SlidingGauge slidingGauge1;
    private PerpetuumSoft.Widgets.Knob knob1;
    private PerpetuumSoft.Widgets.MultiPositionSwitch multiPositionSwitch1;
    private PerpetuumSoft.Widgets.CircularGauge circularGauge1;
    private System.Windows.Forms.Timer timer1;
    private PerpetuumSoft.Widgets.MultimediaButton multimediaButton5;
    private System.Windows.Forms.ContextMenu contextMenu1;
    private System.Windows.Forms.MenuItem menuItem1;
    private System.Windows.Forms.MenuItem menuItem2;
    private System.Windows.Forms.MenuItem menuItem3;
    private System.ComponentModel.IContainer components;

		public Form1()
		{
			//
			// Required for Windows Form Designer support
			//
			InitializeComponent();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));
			this.matrix1 = new PerpetuumSoft.Widgets.Matrix();
			this.multimediaButton1 = new PerpetuumSoft.Widgets.MultimediaButton();
			this.multimediaButton2 = new PerpetuumSoft.Widgets.MultimediaButton();
			this.dial2 = new PerpetuumSoft.Widgets.Dial();
			this.slider1 = new PerpetuumSoft.Widgets.Slider();
			this.levelSlider1 = new PerpetuumSoft.Widgets.LevelSlider();
			this.levelSlider2 = new PerpetuumSoft.Widgets.LevelSlider();
			this.digitalClock1 = new PerpetuumSoft.Widgets.DigitalClock();
			this.oscilloscope1 = new PerpetuumSoft.Widgets.Oscilloscope();
			this.meter1 = new PerpetuumSoft.Widgets.Meter();
			this.levelBar1 = new PerpetuumSoft.Widgets.LevelBar();
			this.levelBar2 = new PerpetuumSoft.Widgets.LevelBar();
			this.toggle1 = new PerpetuumSoft.Widgets.Toggle();
			this.toggle2 = new PerpetuumSoft.Widgets.Toggle();
			this.multimediaButton3 = new PerpetuumSoft.Widgets.MultimediaButton();
			this.multimediaButton4 = new PerpetuumSoft.Widgets.MultimediaButton();
			this.switch4 = new PerpetuumSoft.Widgets.Switch();
			this.switch5 = new PerpetuumSoft.Widgets.Switch();
			this.switch6 = new PerpetuumSoft.Widgets.Switch();
			this.contextMenu1 = new System.Windows.Forms.ContextMenu();
			this.menuItem1 = new System.Windows.Forms.MenuItem();
			this.menuItem2 = new System.Windows.Forms.MenuItem();
			this.menuItem3 = new System.Windows.Forms.MenuItem();
			this.rotarySlider1 = new PerpetuumSoft.Widgets.RotarySlider();
			this.slidingGauge1 = new PerpetuumSoft.Widgets.SlidingGauge();
			this.knob1 = new PerpetuumSoft.Widgets.Knob();
			this.multiPositionSwitch1 = new PerpetuumSoft.Widgets.MultiPositionSwitch();
			this.circularGauge1 = new PerpetuumSoft.Widgets.CircularGauge();
			this.timer1 = new System.Windows.Forms.Timer(this.components);
			this.multimediaButton5 = new PerpetuumSoft.Widgets.MultimediaButton();
			this.SuspendLayout();
			// 
			// matrix1
			// 
			this.matrix1.Bevel.InnerBorder = true;
			this.matrix1.Bevel.OutterBorder = true;
			this.matrix1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.matrix1.Location = new System.Drawing.Point(25, 27);
			this.matrix1.Name = "matrix1";
			this.matrix1.ScrollStyle = PerpetuumSoft.Widgets.TextScrollStyle.Reverse;
			this.matrix1.ScrollText = true;
			this.matrix1.Size = new System.Drawing.Size(575, 56);
			this.matrix1.TabIndex = 0;
			this.matrix1.Text = "Instrumentation Widgets  2.1";
			// 
			// multimediaButton1
			// 
			this.multimediaButton1.BackColor = System.Drawing.Color.Transparent;
			this.multimediaButton1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multimediaButton1.LedShape = PerpetuumSoft.Widgets.ShapeKinds.RightTriangle;
			this.multimediaButton1.Location = new System.Drawing.Point(439, 397);
			this.multimediaButton1.Name = "multimediaButton1";
			this.multimediaButton1.PushDepth = 4;
			this.multimediaButton1.Size = new System.Drawing.Size(32, 24);
			this.multimediaButton1.TabIndex = 2;
			// 
			// multimediaButton2
			// 
			this.multimediaButton2.ActiveLedColor = System.Drawing.Color.Red;
			this.multimediaButton2.BackColor = System.Drawing.Color.Transparent;
			this.multimediaButton2.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multimediaButton2.InactiveLedColor = System.Drawing.Color.DarkRed;
			this.multimediaButton2.LedShape = PerpetuumSoft.Widgets.ShapeKinds.Rectangle;
			this.multimediaButton2.Location = new System.Drawing.Point(538, 396);
			this.multimediaButton2.Name = "multimediaButton2";
			this.multimediaButton2.PushDepth = 4;
			this.multimediaButton2.Size = new System.Drawing.Size(32, 24);
			this.multimediaButton2.TabIndex = 3;
			// 
			// dial2
			// 
			this.dial2.BackColor = System.Drawing.Color.Transparent;
			this.dial2.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.dial2.DialColor = System.Drawing.Color.OldLace;
			this.dial2.Location = new System.Drawing.Point(32, 280);
			this.dial2.Name = "dial2";
			this.dial2.TabIndex = 4;
			this.dial2.Text = "Amplifience";
			// 
			// slider1
			// 
			this.slider1.BackColor = System.Drawing.Color.Transparent;
			this.slider1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.slider1.Location = new System.Drawing.Point(40, 408);
			this.slider1.Name = "slider1";
			this.slider1.ShowNumbers = false;
			this.slider1.ShowTicks = false;
			this.slider1.Size = new System.Drawing.Size(152, 32);
			this.slider1.TabIndex = 5;
			// 
			// levelSlider1
			// 
			this.levelSlider1.Bevel.OutterBorder = true;
			this.levelSlider1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameLowered;
			this.levelSlider1.Location = new System.Drawing.Point(232, 280);
			this.levelSlider1.Name = "levelSlider1";
			this.levelSlider1.Size = new System.Drawing.Size(24, 96);
			this.levelSlider1.TabIndex = 6;
			// 
			// levelSlider2
			// 
			this.levelSlider2.Bevel.OutterBorder = true;
			this.levelSlider2.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameLowered;
			this.levelSlider2.Location = new System.Drawing.Point(264, 280);
			this.levelSlider2.Name = "levelSlider2";
			this.levelSlider2.Size = new System.Drawing.Size(24, 96);
			this.levelSlider2.TabIndex = 7;
			// 
			// digitalClock1
			// 
			this.digitalClock1.Bevel.InnerBorder = true;
			this.digitalClock1.Bevel.OutterBorder = true;
			this.digitalClock1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.digitalClock1.Location = new System.Drawing.Point(184, 168);
			this.digitalClock1.Name = "digitalClock1";
			this.digitalClock1.Size = new System.Drawing.Size(144, 40);
			this.digitalClock1.TabIndex = 8;
			// 
			// oscilloscope1
			// 
			this.oscilloscope1.BackColor = System.Drawing.Color.Black;
			this.oscilloscope1.Bevel.InnerBorder = true;
			this.oscilloscope1.Bevel.OutterBorder = true;
			this.oscilloscope1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.oscilloscope1.EnableSecondRay = true;
			this.oscilloscope1.ForeColor = System.Drawing.Color.Green;
			this.oscilloscope1.Location = new System.Drawing.Point(24, 88);
			this.oscilloscope1.Name = "oscilloscope1";
			this.oscilloscope1.Size = new System.Drawing.Size(160, 120);
			this.oscilloscope1.TabIndex = 9;
			this.oscilloscope1.Text = "oscilloscope1";
			// 
			// meter1
			// 
			this.meter1.BackColor = System.Drawing.Color.MediumAquamarine;
			this.meter1.Bevel.InnerBorder = true;
			this.meter1.Bevel.OutterBorder = true;
			this.meter1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.meter1.ForeColor = System.Drawing.Color.White;
			this.meter1.Location = new System.Drawing.Point(184, 88);
			this.meter1.Name = "meter1";
			this.meter1.Size = new System.Drawing.Size(144, 80);
			this.meter1.TabIndex = 10;
			this.meter1.Text = "meter1";
			this.meter1.Value = 33;
			// 
			// levelBar1
			// 
			this.levelBar1.Bevel.InnerBorder = true;
			this.levelBar1.Bevel.OutterBorder = true;
			this.levelBar1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.levelBar1.Location = new System.Drawing.Point(544, 96);
			this.levelBar1.Name = "levelBar1";
			this.levelBar1.TabIndex = 11;
			this.levelBar1.Value = 45;
			// 
			// levelBar2
			// 
			this.levelBar2.Bevel.InnerBorder = true;
			this.levelBar2.Bevel.OutterBorder = true;
			this.levelBar2.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.FrameRaised;
			this.levelBar2.Location = new System.Drawing.Point(576, 96);
			this.levelBar2.Name = "levelBar2";
			this.levelBar2.TabIndex = 12;
			this.levelBar2.Value = 78;
			// 
			// toggle1
			// 
			this.toggle1.BackColor = System.Drawing.Color.LightSlateGray;
			this.toggle1.Bevel.OutterBorder = true;
			this.toggle1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Lowered;
			this.toggle1.Location = new System.Drawing.Point(232, 384);
			this.toggle1.Name = "toggle1";
			this.toggle1.Size = new System.Drawing.Size(24, 48);
			this.toggle1.TabIndex = 13;
			this.toggle1.Text = "toggle1";
			// 
			// toggle2
			// 
			this.toggle2.BackColor = System.Drawing.Color.LightSlateGray;
			this.toggle2.Bevel.OutterBorder = true;
			this.toggle2.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Lowered;
			this.toggle2.Location = new System.Drawing.Point(264, 384);
			this.toggle2.Name = "toggle2";
			this.toggle2.Size = new System.Drawing.Size(24, 48);
			this.toggle2.TabIndex = 14;
			this.toggle2.Text = "toggle2";
			// 
			// multimediaButton3
			// 
			this.multimediaButton3.BackColor = System.Drawing.Color.Transparent;
			this.multimediaButton3.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multimediaButton3.FaceColor = System.Drawing.Color.Linen;
			this.multimediaButton3.HighlightColor = System.Drawing.Color.White;
			this.multimediaButton3.LedShape = PerpetuumSoft.Widgets.ShapeKinds.Rectangle;
			this.multimediaButton3.Location = new System.Drawing.Point(128, 216);
			this.multimediaButton3.Name = "multimediaButton3";
			this.multimediaButton3.Shape = PerpetuumSoft.Widgets.ShapeKinds.RoundedRectangle;
			this.multimediaButton3.Size = new System.Drawing.Size(72, 24);
			this.multimediaButton3.TabIndex = 15;
			this.multimediaButton3.Text = "Button";
			// 
			// multimediaButton4
			// 
			this.multimediaButton4.ActiveLedColor = System.Drawing.Color.Yellow;
			this.multimediaButton4.BackColor = System.Drawing.Color.Transparent;
			this.multimediaButton4.Behaviour = PerpetuumSoft.Widgets.ButtonBehaviour.CheckBox;
			this.multimediaButton4.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multimediaButton4.FaceColor = System.Drawing.Color.Red;
			this.multimediaButton4.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(204)));
			this.multimediaButton4.ForeColor = System.Drawing.Color.White;
			this.multimediaButton4.HighlightColor = System.Drawing.Color.LightCoral;
			this.multimediaButton4.InactiveLedColor = System.Drawing.Color.DarkGoldenrod;
			this.multimediaButton4.Location = new System.Drawing.Point(336, 208);
			this.multimediaButton4.Name = "multimediaButton4";
			this.multimediaButton4.Size = new System.Drawing.Size(56, 56);
			this.multimediaButton4.TabIndex = 16;
			this.multimediaButton4.Text = "Power";
			// 
			// switch4
			// 
			this.switch4.Bevel.OutterBorder = true;
			this.switch4.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Raised;
			this.switch4.Location = new System.Drawing.Point(24, 216);
			this.switch4.Name = "switch4";
			this.switch4.Size = new System.Drawing.Size(24, 40);
			this.switch4.TabIndex = 20;
			this.switch4.Text = "switch4";
			// 
			// switch5
			// 
			this.switch5.ActiveLedColor = System.Drawing.Color.Yellow;
			this.switch5.Bevel.OutterBorder = true;
			this.switch5.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Raised;
			this.switch5.InactiveLedColor = System.Drawing.Color.Olive;
			this.switch5.Location = new System.Drawing.Point(56, 216);
			this.switch5.Name = "switch5";
			this.switch5.Size = new System.Drawing.Size(24, 40);
			this.switch5.TabIndex = 21;
			this.switch5.Text = "switch5";
			// 
			// switch6
			// 
			this.switch6.ActiveLedColor = System.Drawing.Color.Red;
			this.switch6.Bevel.OutterBorder = true;
			this.switch6.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Raised;
			this.switch6.ContextMenu = this.contextMenu1;
			this.switch6.InactiveLedColor = System.Drawing.Color.DarkRed;
			this.switch6.Location = new System.Drawing.Point(88, 216);
			this.switch6.Name = "switch6";
			this.switch6.Size = new System.Drawing.Size(24, 40);
			this.switch6.TabIndex = 22;
			this.switch6.Text = "switch6";
			// 
			// contextMenu1
			// 
			this.contextMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																								 this.menuItem1,
																																								 this.menuItem2,
																																								 this.menuItem3});
			this.contextMenu1.Popup += new System.EventHandler(this.contextMenu1_Popup);
			// 
			// menuItem1
			// 
			this.menuItem1.Index = 0;
			this.menuItem1.Text = "aaaa";
			this.menuItem1.Click += new System.EventHandler(this.menuItem1_Click);
			// 
			// menuItem2
			// 
			this.menuItem2.Index = 1;
			this.menuItem2.Text = "bbbb";
			// 
			// menuItem3
			// 
			this.menuItem3.Index = 2;
			this.menuItem3.Text = "ccccc";
			// 
			// rotarySlider1
			// 
			this.rotarySlider1.BackColor = System.Drawing.Color.OldLace;
			this.rotarySlider1.Bevel.OutterBorder = true;
			this.rotarySlider1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.Lowered;
			this.rotarySlider1.ContextMenu = this.contextMenu1;
			this.rotarySlider1.Location = new System.Drawing.Point(296, 328);
			this.rotarySlider1.Name = "rotarySlider1";
			this.rotarySlider1.Size = new System.Drawing.Size(40, 104);
			this.rotarySlider1.TabIndex = 26;
			this.rotarySlider1.Text = "rotarySlider1";
			// 
			// slidingGauge1
			// 
			this.slidingGauge1.BackColor = System.Drawing.Color.White;
			this.slidingGauge1.Bevel.InnerBorder = true;
			this.slidingGauge1.Bevel.OutterBorder = true;
			this.slidingGauge1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.DoubleLowered;
			this.slidingGauge1.Location = new System.Drawing.Point(336, 88);
			this.slidingGauge1.Name = "slidingGauge1";
			this.slidingGauge1.ShowGradient = true;
			this.slidingGauge1.Size = new System.Drawing.Size(48, 120);
			this.slidingGauge1.TabIndex = 27;
			this.slidingGauge1.Text = "slidingGauge1";
			// 
			// knob1
			// 
			this.knob1.BackColor = System.Drawing.Color.Transparent;
			this.knob1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.knob1.DialRadius = 16;
			this.knob1.Location = new System.Drawing.Point(184, 392);
			this.knob1.Name = "knob1";
			this.knob1.ShowNumbers = false;
			this.knob1.ShowTicks = false;
			this.knob1.Size = new System.Drawing.Size(48, 40);
			this.knob1.TabIndex = 28;
			// 
			// multiPositionSwitch1
			// 
			this.multiPositionSwitch1.BackColor = System.Drawing.Color.Transparent;
			this.multiPositionSwitch1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multiPositionSwitch1.Cases = new string[] {
																											 "mode 1",
																											 "mode 2",
																											 "mode 3",
																											 "mode 4",
																											 "mode 5",
																											 "mode 6",
																											 "off",
																											 "11"};
			this.multiPositionSwitch1.Location = new System.Drawing.Point(410, 302);
			this.multiPositionSwitch1.Maximum = 6;
			this.multiPositionSwitch1.Name = "multiPositionSwitch1";
			this.multiPositionSwitch1.Size = new System.Drawing.Size(184, 128);
			this.multiPositionSwitch1.TabIndex = 30;
			this.multiPositionSwitch1.TabStop = false;
			this.multiPositionSwitch1.Text = "Switch";
			// 
			// circularGauge1
			// 
			this.circularGauge1.BackColor = System.Drawing.Color.Transparent;
			this.circularGauge1.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.circularGauge1.DialColor = System.Drawing.Color.DodgerBlue;
			this.circularGauge1.ForeColor = System.Drawing.Color.White;
			this.circularGauge1.LargeTickFrequency = 20;
			this.circularGauge1.Location = new System.Drawing.Point(392, 88);
			this.circularGauge1.Name = "circularGauge1";
			this.circularGauge1.ShowGradient = true;
			this.circularGauge1.Size = new System.Drawing.Size(136, 128);
			this.circularGauge1.TabIndex = 31;
			this.circularGauge1.Text = "Gauge";
			this.circularGauge1.Value = 65;
			// 
			// timer1
			// 
			this.timer1.Enabled = true;
			this.timer1.Interval = 30;
			this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
			// 
			// multimediaButton5
			// 
			this.multimediaButton5.ActiveLedColor = System.Drawing.Color.Red;
			this.multimediaButton5.BackColor = System.Drawing.Color.Transparent;
			this.multimediaButton5.Bevel.Style = PerpetuumSoft.Widgets.BevelStyle.None;
			this.multimediaButton5.ContextMenu = this.contextMenu1;
			this.multimediaButton5.FaceColor = System.Drawing.Color.Linen;
			this.multimediaButton5.HighlightColor = System.Drawing.Color.White;
			this.multimediaButton5.InactiveLedColor = System.Drawing.Color.DeepSkyBlue;
			this.multimediaButton5.LedShape = PerpetuumSoft.Widgets.ShapeKinds.Rectangle;
			this.multimediaButton5.Location = new System.Drawing.Point(208, 216);
			this.multimediaButton5.Name = "multimediaButton5";
			this.multimediaButton5.Shape = PerpetuumSoft.Widgets.ShapeKinds.RoundedRectangle;
			this.multimediaButton5.Size = new System.Drawing.Size(72, 24);
			this.multimediaButton5.TabIndex = 16;
			this.multimediaButton5.Text = "Close";
			this.multimediaButton5.Click += new System.EventHandler(this.multimediaButton5_Click);
			// 
			// Form1
			// 
			this.AutoScale = false;
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.BackgroundImage = ((System.Drawing.Bitmap)(resources.GetObject("$this.BackgroundImage")));
			this.ClientSize = new System.Drawing.Size(621, 461);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																																	this.multimediaButton5,
																																	this.multimediaButton2,
																																	this.multimediaButton1,
																																	this.circularGauge1,
																																	this.multiPositionSwitch1,
																																	this.knob1,
																																	this.slidingGauge1,
																																	this.rotarySlider1,
																																	this.switch6,
																																	this.switch5,
																																	this.switch4,
																																	this.multimediaButton4,
																																	this.multimediaButton3,
																																	this.toggle2,
																																	this.toggle1,
																																	this.levelBar2,
																																	this.levelBar1,
																																	this.meter1,
																																	this.oscilloscope1,
																																	this.digitalClock1,
																																	this.levelSlider2,
																																	this.levelSlider1,
																																	this.slider1,
																																	this.dial2,
																																	this.matrix1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Name = "Form1";
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.Text = "Instrumentation Widgets 2.0 Demo";
			this.TransparencyKey = System.Drawing.Color.Magenta;
			this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

    double a = 0;
    private void timer1_Tick(object sender, System.EventArgs e)
    {
      a += Math.PI/50;
      int val = (int)(Math.Sin(a)*45+50);
      //int val1 = (int)(Math.Pow((Math.Sin(a/1.7)),2)*45+50);
      int val1 = (int)(Math.Cos(a/1.7)*35+50);
      oscilloscope1.MoveRays(val,val1);
      levelBar1.Value = val;
      levelBar2.Value = val1;
      //meter1.Value = val;
      //circularGauge1.Value = val1;
    }

    private void multimediaButton5_Click(object sender, System.EventArgs e)
    {
      Close();
    }

    private void contextMenu1_Popup(object sender, System.EventArgs e)
    {
    
    }

    private void menuItem1_Click(object sender, System.EventArgs e)
    {
      MessageBox.Show("1");
    }

	}
}
