Click here to Skip to main content
15,886,110 members
Articles / Internet of Things / Arduino

Simulating and controlling GE Color Effects Lights with Arduino

Rate me:
Please Sign up or sign in to vote.
4.80/5 (13 votes)
27 Nov 2012CPOL13 min read 137.2K   1.4K   25  
Simulating and Controlling GE Color Effects Lights with Arduino
namespace GELightsSimulator
{
   partial class Form1
   {
      /// <summary>
      /// Required designer variable.
      /// </summary>
      private System.ComponentModel.IContainer components = null;

      /// <summary>
      /// Clean up any resources being used.
      /// </summary>
      /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
      protected override void Dispose(bool disposing)
      {
         if (disposing && (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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
         this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
         this.splitContainer1 = new System.Windows.Forms.SplitContainer();
         this.panel1 = new GELightsSimulator.Form1.MyPanel();
         this.textBox1 = new System.Windows.Forms.TextBox();
         this.menuStrip1 = new System.Windows.Forms.MenuStrip();
         this.sourceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.tCPIPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.serialToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.memoryToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.kBToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
         this.kBToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
         this.serialPort1 = new System.IO.Ports.SerialPort(this.components);
         this.imageList1 = new System.Windows.Forms.ImageList(this.components);
         this.toolStrip1 = new System.Windows.Forms.ToolStrip();
         this.toolStripButton1 = new System.Windows.Forms.ToolStripButton();
         this.toolStripButton2 = new System.Windows.Forms.ToolStripButton();
         this.progressBar1 = new System.Windows.Forms.ProgressBar();
         this.label1 = new System.Windows.Forms.Label();
         ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
         this.splitContainer1.Panel1.SuspendLayout();
         this.splitContainer1.Panel2.SuspendLayout();
         this.splitContainer1.SuspendLayout();
         this.menuStrip1.SuspendLayout();
         this.toolStrip1.SuspendLayout();
         this.SuspendLayout();
         // 
         // openFileDialog1
         // 
         this.openFileDialog1.AddExtension = false;
         this.openFileDialog1.DefaultExt = "dat";
         this.openFileDialog1.FileName = "*.dat";
         this.openFileDialog1.Filter = "Binary Files|*.bin|Data Files|*.dat|All Files|*.*";
         this.openFileDialog1.FilterIndex = 2;
         this.openFileDialog1.RestoreDirectory = true;
         // 
         // splitContainer1
         // 
         this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
         this.splitContainer1.Location = new System.Drawing.Point(0, 24);
         this.splitContainer1.Name = "splitContainer1";
         this.splitContainer1.Orientation = System.Windows.Forms.Orientation.Horizontal;
         // 
         // splitContainer1.Panel1
         // 
         this.splitContainer1.Panel1.Controls.Add(this.panel1);
         // 
         // splitContainer1.Panel2
         // 
         this.splitContainer1.Panel2.Controls.Add(this.textBox1);
         this.splitContainer1.Size = new System.Drawing.Size(358, 179);
         this.splitContainer1.SplitterDistance = 104;
         this.splitContainer1.TabIndex = 0;
         // 
         // panel1
         // 
         this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
         this.panel1.Location = new System.Drawing.Point(0, 0);
         this.panel1.Name = "panel1";
         this.panel1.Size = new System.Drawing.Size(358, 104);
         this.panel1.TabIndex = 0;
         this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
         // 
         // textBox1
         // 
         this.textBox1.Dock = System.Windows.Forms.DockStyle.Fill;
         this.textBox1.Location = new System.Drawing.Point(0, 0);
         this.textBox1.Multiline = true;
         this.textBox1.Name = "textBox1";
         this.textBox1.ReadOnly = true;
         this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Both;
         this.textBox1.Size = new System.Drawing.Size(358, 71);
         this.textBox1.TabIndex = 0;
         // 
         // menuStrip1
         // 
         this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.sourceToolStripMenuItem});
         this.menuStrip1.Location = new System.Drawing.Point(0, 0);
         this.menuStrip1.Name = "menuStrip1";
         this.menuStrip1.Size = new System.Drawing.Size(358, 24);
         this.menuStrip1.TabIndex = 1;
         this.menuStrip1.Text = "menuStrip1";
         // 
         // sourceToolStripMenuItem
         // 
         this.sourceToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.tCPIPToolStripMenuItem,
            this.serialToolStripMenuItem,
            this.memoryToolStripMenuItem});
         this.sourceToolStripMenuItem.Name = "sourceToolStripMenuItem";
         this.sourceToolStripMenuItem.Size = new System.Drawing.Size(55, 20);
         this.sourceToolStripMenuItem.Text = "Source";
         // 
         // tCPIPToolStripMenuItem
         // 
         this.tCPIPToolStripMenuItem.Checked = true;
         this.tCPIPToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
         this.tCPIPToolStripMenuItem.Name = "tCPIPToolStripMenuItem";
         this.tCPIPToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
         this.tCPIPToolStripMenuItem.Text = "TCP/IP";
         this.tCPIPToolStripMenuItem.Click += new System.EventHandler(this.tCPIPToolStripMenuItem_Click);
         // 
         // serialToolStripMenuItem
         // 
         this.serialToolStripMenuItem.Name = "serialToolStripMenuItem";
         this.serialToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
         this.serialToolStripMenuItem.Text = "Serial";
         // 
         // memoryToolStripMenuItem
         // 
         this.memoryToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.kBToolStripMenuItem,
            this.kBToolStripMenuItem1});
         this.memoryToolStripMenuItem.Name = "memoryToolStripMenuItem";
         this.memoryToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
         this.memoryToolStripMenuItem.Text = "Memory";
         // 
         // kBToolStripMenuItem
         // 
         this.kBToolStripMenuItem.CheckOnClick = true;
         this.kBToolStripMenuItem.Name = "kBToolStripMenuItem";
         this.kBToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
         this.kBToolStripMenuItem.Text = "2KB";
         this.kBToolStripMenuItem.Click += new System.EventHandler(this.kBToolStripMenuItem_Click);
         // 
         // kBToolStripMenuItem1
         // 
         this.kBToolStripMenuItem1.Checked = true;
         this.kBToolStripMenuItem1.CheckOnClick = true;
         this.kBToolStripMenuItem1.CheckState = System.Windows.Forms.CheckState.Checked;
         this.kBToolStripMenuItem1.Name = "kBToolStripMenuItem1";
         this.kBToolStripMenuItem1.Size = new System.Drawing.Size(152, 22);
         this.kBToolStripMenuItem1.Text = "8KB";
         this.kBToolStripMenuItem1.Click += new System.EventHandler(this.kBToolStripMenuItem1_Click);
         // 
         // imageList1
         // 
         this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
         this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
         this.imageList1.Images.SetKeyName(0, "unlitprogress.gif");
         this.imageList1.Images.SetKeyName(1, "litprogress.gif");
         this.imageList1.Images.SetKeyName(2, "unliterror.gif");
         this.imageList1.Images.SetKeyName(3, "literror.gif");
         // 
         // toolStrip1
         // 
         this.toolStrip1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
         this.toolStrip1.Dock = System.Windows.Forms.DockStyle.None;
         this.toolStrip1.GripStyle = System.Windows.Forms.ToolStripGripStyle.Hidden;
         this.toolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.toolStripButton1,
            this.toolStripButton2});
         this.toolStrip1.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
         this.toolStrip1.Location = new System.Drawing.Point(311, 1);
         this.toolStrip1.Name = "toolStrip1";
         this.toolStrip1.Size = new System.Drawing.Size(47, 23);
         this.toolStrip1.TabIndex = 2;
         this.toolStrip1.Text = "toolStrip1";
         // 
         // toolStripButton1
         // 
         this.toolStripButton1.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
         this.toolStripButton1.Image = global::GELightsSimulator.Properties.Resources.unlitprogress;
         this.toolStripButton1.ImageTransparentColor = System.Drawing.Color.Magenta;
         this.toolStripButton1.Name = "toolStripButton1";
         this.toolStripButton1.Size = new System.Drawing.Size(23, 20);
         this.toolStripButton1.Text = "progressButton";
         // 
         // toolStripButton2
         // 
         this.toolStripButton2.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image;
         this.toolStripButton2.Image = ((System.Drawing.Image)(resources.GetObject("toolStripButton2.Image")));
         this.toolStripButton2.ImageTransparentColor = System.Drawing.Color.Magenta;
         this.toolStripButton2.Name = "toolStripButton2";
         this.toolStripButton2.Size = new System.Drawing.Size(23, 20);
         this.toolStripButton2.Text = "errorButton";
         // 
         // progressBar1
         // 
         this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
         this.progressBar1.Location = new System.Drawing.Point(170, 0);
         this.progressBar1.Name = "progressBar1";
         this.progressBar1.Size = new System.Drawing.Size(138, 23);
         this.progressBar1.Step = 1;
         this.progressBar1.Style = System.Windows.Forms.ProgressBarStyle.Continuous;
         this.progressBar1.TabIndex = 3;
         // 
         // label1
         // 
         this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
         this.label1.AutoSize = true;
         this.label1.BackColor = System.Drawing.Color.Transparent;
         this.label1.ForeColor = System.Drawing.Color.White;
         this.label1.Location = new System.Drawing.Point(224, 1);
         this.label1.Name = "label1";
         this.label1.Size = new System.Drawing.Size(20, 13);
         this.label1.TabIndex = 4;
         this.label1.Text = "0B";
         // 
         // Form1
         // 
         this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
         this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
         this.BackColor = System.Drawing.Color.Black;
         this.ClientSize = new System.Drawing.Size(358, 203);
         this.Controls.Add(this.label1);
         this.Controls.Add(this.progressBar1);
         this.Controls.Add(this.toolStrip1);
         this.Controls.Add(this.splitContainer1);
         this.Controls.Add(this.menuStrip1);
         this.DoubleBuffered = true;
         this.MainMenuStrip = this.menuStrip1;
         this.Name = "Form1";
         this.Text = "GE Color Effects Simulator";
         this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
         this.splitContainer1.Panel1.ResumeLayout(false);
         this.splitContainer1.Panel2.ResumeLayout(false);
         this.splitContainer1.Panel2.PerformLayout();
         ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
         this.splitContainer1.ResumeLayout(false);
         this.menuStrip1.ResumeLayout(false);
         this.menuStrip1.PerformLayout();
         this.toolStrip1.ResumeLayout(false);
         this.toolStrip1.PerformLayout();
         this.ResumeLayout(false);
         this.PerformLayout();

      }

      #endregion

      private System.Windows.Forms.OpenFileDialog openFileDialog1;
      private System.Windows.Forms.SplitContainer splitContainer1;
      private System.Windows.Forms.TextBox textBox1;
      private System.Windows.Forms.MenuStrip menuStrip1;
      private System.Windows.Forms.ToolStripMenuItem sourceToolStripMenuItem;
      private System.Windows.Forms.ToolStripMenuItem tCPIPToolStripMenuItem;
      private System.Windows.Forms.ToolStripMenuItem serialToolStripMenuItem;
      private System.IO.Ports.SerialPort serialPort1;
      private System.Windows.Forms.ImageList imageList1;
      private System.Windows.Forms.ToolStrip toolStrip1;
      private System.Windows.Forms.ToolStripButton toolStripButton1;
      private System.Windows.Forms.ToolStripButton toolStripButton2;
      private Form1.MyPanel panel1;
      private System.Windows.Forms.ToolStripMenuItem memoryToolStripMenuItem;
      private System.Windows.Forms.ToolStripMenuItem kBToolStripMenuItem;
      private System.Windows.Forms.ToolStripMenuItem kBToolStripMenuItem1;
      private System.Windows.Forms.ProgressBar progressBar1;
      private System.Windows.Forms.Label label1;

   }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions