Exemplo n.º 1
0
 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(EnergyHarvesting_Demo_CP));
     tabControl1 = new TabControl();
     tabPage1 = new TabPage();
     groupBox1 = new GroupBox();
     viewRssi1 = new ViewRssi();
     groupBox5 = new GroupBox();
     viewEZMacNetwork1 = new ViewEZMacNetwork();
     tabPage2 = new TabPage();
     viewDataReceiver1 = new ViewDataReceiver();
     tabPage3 = new TabPage();
     groupBoxNodeInfo4 = new GroupBox();
     textBoxLight4 = new TextBox();
     label10 = new Label();
     textBoxTemp4 = new TextBox();
     label11 = new Label();
     label12 = new Label();
     textBoxVbat4 = new TextBox();
     groupBoxNodeInfo3 = new GroupBox();
     textBoxLight3 = new TextBox();
     label7 = new Label();
     textBoxTemp3 = new TextBox();
     label8 = new Label();
     label9 = new Label();
     textBoxVbat3 = new TextBox();
     groupBoxNodeInfo2 = new GroupBox();
     textBoxLight2 = new TextBox();
     label4 = new Label();
     textBoxTemp2 = new TextBox();
     label5 = new Label();
     label6 = new Label();
     textBoxVbat2 = new TextBox();
     groupBoxNodeInfo1 = new GroupBox();
     textBoxLight1 = new TextBox();
     label3 = new Label();
     textBoxTemp1 = new TextBox();
     label2 = new Label();
     label1 = new Label();
     textBoxVbat1 = new TextBox();
     groupBox2 = new GroupBox();
     groupBoxLandscape4 = new GroupBox();
     viewLandscape4 = new ViewLandscape();
     groupBoxLandscape2 = new GroupBox();
     viewLandscape2 = new ViewLandscape();
     groupBoxLandscape3 = new GroupBox();
     viewLandscape3 = new ViewLandscape();
     groupBoxLandscape1 = new GroupBox();
     viewLandscape1 = new ViewLandscape();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     groupBox1.SuspendLayout();
     groupBox5.SuspendLayout();
     tabPage2.SuspendLayout();
     tabPage3.SuspendLayout();
     groupBoxNodeInfo4.SuspendLayout();
     groupBoxNodeInfo3.SuspendLayout();
     groupBoxNodeInfo2.SuspendLayout();
     groupBoxNodeInfo1.SuspendLayout();
     groupBox2.SuspendLayout();
     groupBoxLandscape4.SuspendLayout();
     groupBoxLandscape2.SuspendLayout();
     groupBoxLandscape3.SuspendLayout();
     groupBoxLandscape1.SuspendLayout();
     base.SuspendLayout();
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Controls.Add(tabPage3);
     tabControl1.Location = new Point(0x1ec, 6);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(430, 0x200);
     tabControl1.TabIndex = 13;
     tabPage1.BackColor = Color.White;
     tabPage1.Controls.Add(groupBox1);
     tabPage1.Controls.Add(groupBox5);
     tabPage1.Location = new Point(4, 0x16);
     tabPage1.Name = "tabPage1";
     tabPage1.Padding = new Padding(3);
     tabPage1.Size = new Size(0x1a6, 0x1e6);
     tabPage1.TabIndex = 0;
     tabPage1.Text = "Logic";
     groupBox1.BackColor = Color.White;
     groupBox1.Controls.Add(viewRssi1);
     groupBox1.Location = new Point(6, 0x143);
     groupBox1.Name = "groupBox1";
     groupBox1.Size = new Size(410, 0x9d);
     groupBox1.TabIndex = 11;
     groupBox1.TabStop = false;
     groupBox1.Text = "RSSI";
     viewRssi1.BackColor = Color.White;
     viewRssi1.Location = new Point(6, 0x13);
     viewRssi1.Name = "viewRssi1";
     viewRssi1.Size = new Size(0x18e, 0x84);
     viewRssi1.TabIndex = 7;
     groupBox5.BackColor = Color.White;
     groupBox5.Controls.Add(viewEZMacNetwork1);
     groupBox5.Location = new Point(6, 6);
     groupBox5.Name = "groupBox5";
     groupBox5.Size = new Size(410, 0x137);
     groupBox5.TabIndex = 3;
     groupBox5.TabStop = false;
     groupBox5.Text = "EZMac(tm) network status";
     viewEZMacNetwork1.BackColor = Color.Transparent;
     viewEZMacNetwork1.BackgroundImageLayout = ImageLayout.None;
     viewEZMacNetwork1.Location = new Point(0x38, 14);
     viewEZMacNetwork1.Name = "viewEZMacNetwork1";
     viewEZMacNetwork1.Size = new Size(0x131, 0x11e);
     viewEZMacNetwork1.TabIndex = 0;
     tabPage2.BackColor = Color.White;
     tabPage2.Controls.Add(viewDataReceiver1);
     tabPage2.Location = new Point(4, 0x16);
     tabPage2.Name = "tabPage2";
     tabPage2.Padding = new Padding(3);
     tabPage2.Size = new Size(0x1a6, 0x1e6);
     tabPage2.TabIndex = 1;
     tabPage2.Text = "Packet";
     viewDataReceiver1.BackColor = Color.White;
     viewDataReceiver1.CustomStringConvertion = true;
     viewDataReceiver1.InsertHeader = true;
     viewDataReceiver1.Location = new Point(6, 7);
     viewDataReceiver1.Name = "viewDataReceiver1";
     viewDataReceiver1.Size = new Size(410, 0x1d9);
     viewDataReceiver1.TabIndex = 1;
     tabPage3.BackColor = Color.White;
     tabPage3.Controls.Add(groupBoxNodeInfo4);
     tabPage3.Controls.Add(groupBoxNodeInfo3);
     tabPage3.Controls.Add(groupBoxNodeInfo2);
     tabPage3.Controls.Add(groupBoxNodeInfo1);
     tabPage3.Location = new Point(4, 0x16);
     tabPage3.Name = "tabPage3";
     tabPage3.Padding = new Padding(3);
     tabPage3.Size = new Size(0x1a6, 0x1e6);
     tabPage3.TabIndex = 2;
     tabPage3.Text = "NodeInfo";
     groupBoxNodeInfo4.Controls.Add(textBoxLight4);
     groupBoxNodeInfo4.Controls.Add(label10);
     groupBoxNodeInfo4.Controls.Add(textBoxTemp4);
     groupBoxNodeInfo4.Controls.Add(label11);
     groupBoxNodeInfo4.Controls.Add(label12);
     groupBoxNodeInfo4.Controls.Add(textBoxVbat4);
     groupBoxNodeInfo4.Enabled = false;
     groupBoxNodeInfo4.Location = new Point(0xd4, 0xe8);
     groupBoxNodeInfo4.Name = "groupBoxNodeInfo4";
     groupBoxNodeInfo4.Size = new Size(0xa5, 0x62);
     groupBoxNodeInfo4.TabIndex = 6;
     groupBoxNodeInfo4.TabStop = false;
     groupBoxNodeInfo4.Text = "Node #4";
     textBoxLight4.Location = new Point(0x5b, 0x45);
     textBoxLight4.Name = "textBoxLight4";
     textBoxLight4.ReadOnly = true;
     textBoxLight4.Size = new Size(0x3f, 20);
     textBoxLight4.TabIndex = 5;
     label10.AutoSize = true;
     label10.Location = new Point(6, 0x48);
     label10.Name = "label10";
     label10.Size = new Size(0x3b, 13);
     label10.TabIndex = 4;
     label10.Text = "Light Level";
     textBoxTemp4.Location = new Point(0x5b, 0x2b);
     textBoxTemp4.Name = "textBoxTemp4";
     textBoxTemp4.ReadOnly = true;
     textBoxTemp4.Size = new Size(0x3f, 20);
     textBoxTemp4.TabIndex = 3;
     label11.AutoSize = true;
     label11.Location = new Point(6, 0x2e);
     label11.Name = "label11";
     label11.Size = new Size(0x43, 13);
     label11.TabIndex = 2;
     label11.Text = "Temperature";
     label12.AutoSize = true;
     label12.Location = new Point(6, 20);
     label12.Name = "label12";
     label12.Size = new Size(0x4f, 13);
     label12.TabIndex = 1;
     label12.Text = "Battery Voltage";
     textBoxVbat4.Location = new Point(0x5b, 0x11);
     textBoxVbat4.Name = "textBoxVbat4";
     textBoxVbat4.ReadOnly = true;
     textBoxVbat4.Size = new Size(0x3f, 20);
     textBoxVbat4.TabIndex = 0;
     groupBoxNodeInfo3.Controls.Add(textBoxLight3);
     groupBoxNodeInfo3.Controls.Add(label7);
     groupBoxNodeInfo3.Controls.Add(textBoxTemp3);
     groupBoxNodeInfo3.Controls.Add(label8);
     groupBoxNodeInfo3.Controls.Add(label9);
     groupBoxNodeInfo3.Controls.Add(textBoxVbat3);
     groupBoxNodeInfo3.Enabled = false;
     groupBoxNodeInfo3.Location = new Point(0x29, 0xe8);
     groupBoxNodeInfo3.Name = "groupBoxNodeInfo3";
     groupBoxNodeInfo3.Size = new Size(0xa5, 0x62);
     groupBoxNodeInfo3.TabIndex = 6;
     groupBoxNodeInfo3.TabStop = false;
     groupBoxNodeInfo3.Text = "Node #3";
     textBoxLight3.Location = new Point(0x5b, 0x45);
     textBoxLight3.Name = "textBoxLight3";
     textBoxLight3.ReadOnly = true;
     textBoxLight3.Size = new Size(0x3f, 20);
     textBoxLight3.TabIndex = 5;
     label7.AutoSize = true;
     label7.Location = new Point(6, 0x48);
     label7.Name = "label7";
     label7.Size = new Size(0x3b, 13);
     label7.TabIndex = 4;
     label7.Text = "Light Level";
     textBoxTemp3.Location = new Point(0x5b, 0x2b);
     textBoxTemp3.Name = "textBoxTemp3";
     textBoxTemp3.ReadOnly = true;
     textBoxTemp3.Size = new Size(0x3f, 20);
     textBoxTemp3.TabIndex = 3;
     label8.AutoSize = true;
     label8.Location = new Point(6, 0x2e);
     label8.Name = "label8";
     label8.Size = new Size(0x43, 13);
     label8.TabIndex = 2;
     label8.Text = "Temperature";
     label9.AutoSize = true;
     label9.Location = new Point(6, 20);
     label9.Name = "label9";
     label9.Size = new Size(0x4f, 13);
     label9.TabIndex = 1;
     label9.Text = "Battery Voltage";
     textBoxVbat3.Location = new Point(0x5b, 0x11);
     textBoxVbat3.Name = "textBoxVbat3";
     textBoxVbat3.ReadOnly = true;
     textBoxVbat3.Size = new Size(0x3f, 20);
     textBoxVbat3.TabIndex = 0;
     groupBoxNodeInfo2.Controls.Add(textBoxLight2);
     groupBoxNodeInfo2.Controls.Add(label4);
     groupBoxNodeInfo2.Controls.Add(textBoxTemp2);
     groupBoxNodeInfo2.Controls.Add(label5);
     groupBoxNodeInfo2.Controls.Add(label6);
     groupBoxNodeInfo2.Controls.Add(textBoxVbat2);
     groupBoxNodeInfo2.Enabled = false;
     groupBoxNodeInfo2.Location = new Point(0xd4, 0x80);
     groupBoxNodeInfo2.Name = "groupBoxNodeInfo2";
     groupBoxNodeInfo2.Size = new Size(0xa5, 0x62);
     groupBoxNodeInfo2.TabIndex = 6;
     groupBoxNodeInfo2.TabStop = false;
     groupBoxNodeInfo2.Text = "Node #2";
     textBoxLight2.Location = new Point(0x5b, 0x45);
     textBoxLight2.Name = "textBoxLight2";
     textBoxLight2.ReadOnly = true;
     textBoxLight2.Size = new Size(0x3f, 20);
     textBoxLight2.TabIndex = 5;
     label4.AutoSize = true;
     label4.Location = new Point(6, 0x48);
     label4.Name = "label4";
     label4.Size = new Size(0x3b, 13);
     label4.TabIndex = 4;
     label4.Text = "Light Level";
     textBoxTemp2.Location = new Point(0x5b, 0x2b);
     textBoxTemp2.Name = "textBoxTemp2";
     textBoxTemp2.ReadOnly = true;
     textBoxTemp2.Size = new Size(0x3f, 20);
     textBoxTemp2.TabIndex = 3;
     label5.AutoSize = true;
     label5.Location = new Point(6, 0x2e);
     label5.Name = "label5";
     label5.Size = new Size(0x43, 13);
     label5.TabIndex = 2;
     label5.Text = "Temperature";
     label6.AutoSize = true;
     label6.Location = new Point(6, 20);
     label6.Name = "label6";
     label6.Size = new Size(0x4f, 13);
     label6.TabIndex = 1;
     label6.Text = "Battery Voltage";
     textBoxVbat2.Location = new Point(0x5b, 0x11);
     textBoxVbat2.Name = "textBoxVbat2";
     textBoxVbat2.ReadOnly = true;
     textBoxVbat2.Size = new Size(0x3f, 20);
     textBoxVbat2.TabIndex = 0;
     groupBoxNodeInfo1.Controls.Add(textBoxLight1);
     groupBoxNodeInfo1.Controls.Add(label3);
     groupBoxNodeInfo1.Controls.Add(textBoxTemp1);
     groupBoxNodeInfo1.Controls.Add(label2);
     groupBoxNodeInfo1.Controls.Add(label1);
     groupBoxNodeInfo1.Controls.Add(textBoxVbat1);
     groupBoxNodeInfo1.Enabled = false;
     groupBoxNodeInfo1.Location = new Point(0x29, 0x80);
     groupBoxNodeInfo1.Name = "groupBoxNodeInfo1";
     groupBoxNodeInfo1.Size = new Size(0xa5, 0x62);
     groupBoxNodeInfo1.TabIndex = 0;
     groupBoxNodeInfo1.TabStop = false;
     groupBoxNodeInfo1.Text = "Node #1";
     textBoxLight1.Location = new Point(0x5b, 0x45);
     textBoxLight1.Name = "textBoxLight1";
     textBoxLight1.ReadOnly = true;
     textBoxLight1.Size = new Size(0x3f, 20);
     textBoxLight1.TabIndex = 5;
     label3.AutoSize = true;
     label3.Location = new Point(6, 0x48);
     label3.Name = "label3";
     label3.Size = new Size(0x3b, 13);
     label3.TabIndex = 4;
     label3.Text = "Light Level";
     textBoxTemp1.Location = new Point(0x5b, 0x2b);
     textBoxTemp1.Name = "textBoxTemp1";
     textBoxTemp1.ReadOnly = true;
     textBoxTemp1.Size = new Size(0x3f, 20);
     textBoxTemp1.TabIndex = 3;
     label2.AutoSize = true;
     label2.Location = new Point(6, 0x2e);
     label2.Name = "label2";
     label2.Size = new Size(0x43, 13);
     label2.TabIndex = 2;
     label2.Text = "Temperature";
     label1.AutoSize = true;
     label1.Location = new Point(6, 20);
     label1.Name = "label1";
     label1.Size = new Size(0x4f, 13);
     label1.TabIndex = 1;
     label1.Text = "Battery Voltage";
     textBoxVbat1.Location = new Point(0x5b, 0x11);
     textBoxVbat1.Name = "textBoxVbat1";
     textBoxVbat1.ReadOnly = true;
     textBoxVbat1.Size = new Size(0x3f, 20);
     textBoxVbat1.TabIndex = 0;
     groupBox2.Controls.Add(groupBoxLandscape4);
     groupBox2.Controls.Add(groupBoxLandscape2);
     groupBox2.Controls.Add(groupBoxLandscape3);
     groupBox2.Controls.Add(groupBoxLandscape1);
     groupBox2.Location = new Point(7, 6);
     groupBox2.Name = "groupBox2";
     groupBox2.Size = new Size(0x1df, 0x200);
     groupBox2.TabIndex = 0x10;
     groupBox2.TabStop = false;
     groupBoxLandscape4.Controls.Add(viewLandscape4);
     groupBoxLandscape4.Enabled = false;
     groupBoxLandscape4.Location = new Point(0xf2, 0xff);
     groupBoxLandscape4.Name = "groupBoxLandscape4";
     groupBoxLandscape4.Size = new Size(230, 0xb7);
     groupBoxLandscape4.TabIndex = 0x17;
     groupBoxLandscape4.TabStop = false;
     groupBoxLandscape4.Text = "Node #4";
     viewLandscape4.BackColor = Color.Transparent;
     viewLandscape4.BackgroundImage = (Image)resources.GetObject("viewLandscape4.BackgroundImage");
     viewLandscape4.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape4.Charge = 10;
     viewLandscape4.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape4.Location = new Point(6, 0x13);
     viewLandscape4.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape4.Name = "viewLandscape4";
     viewLandscape4.Size = new Size(0xd9, 0x9c);
     viewLandscape4.TabIndex = 0x11;
     viewLandscape4.Temperature = "25.0\x00b0C";
     groupBoxLandscape2.Controls.Add(viewLandscape2);
     groupBoxLandscape2.Enabled = false;
     groupBoxLandscape2.Location = new Point(0xf2, 0x42);
     groupBoxLandscape2.Name = "groupBoxLandscape2";
     groupBoxLandscape2.Size = new Size(230, 0xb7);
     groupBoxLandscape2.TabIndex = 0x16;
     groupBoxLandscape2.TabStop = false;
     groupBoxLandscape2.Text = "Node #2";
     viewLandscape2.BackColor = Color.Transparent;
     viewLandscape2.BackgroundImage = (Image)resources.GetObject("viewLandscape2.BackgroundImage");
     viewLandscape2.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape2.Charge = 10;
     viewLandscape2.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape2.Location = new Point(6, 0x13);
     viewLandscape2.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape2.Name = "viewLandscape2";
     viewLandscape2.Size = new Size(0xd9, 0x9c);
     viewLandscape2.TabIndex = 0x11;
     viewLandscape2.Temperature = "25.0\x00b0C";
     groupBoxLandscape3.Controls.Add(viewLandscape3);
     groupBoxLandscape3.Enabled = false;
     groupBoxLandscape3.Location = new Point(6, 0xff);
     groupBoxLandscape3.Name = "groupBoxLandscape3";
     groupBoxLandscape3.Size = new Size(230, 0xb7);
     groupBoxLandscape3.TabIndex = 0x16;
     groupBoxLandscape3.TabStop = false;
     groupBoxLandscape3.Text = "Node #3";
     viewLandscape3.BackColor = Color.Transparent;
     viewLandscape3.BackgroundImage = (Image)resources.GetObject("viewLandscape3.BackgroundImage");
     viewLandscape3.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape3.Charge = 10;
     viewLandscape3.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape3.Location = new Point(6, 0x13);
     viewLandscape3.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape3.Name = "viewLandscape3";
     viewLandscape3.Size = new Size(0xd9, 0x9c);
     viewLandscape3.TabIndex = 0x11;
     viewLandscape3.Temperature = "25.0\x00b0C";
     groupBoxLandscape1.Controls.Add(viewLandscape1);
     groupBoxLandscape1.Enabled = false;
     groupBoxLandscape1.Location = new Point(6, 0x42);
     groupBoxLandscape1.Name = "groupBoxLandscape1";
     groupBoxLandscape1.Size = new Size(230, 0xb7);
     groupBoxLandscape1.TabIndex = 0x15;
     groupBoxLandscape1.TabStop = false;
     groupBoxLandscape1.Text = "Node #1";
     viewLandscape1.BackColor = Color.Transparent;
     viewLandscape1.BackgroundImage = (Image)resources.GetObject("viewLandscape1.BackgroundImage");
     viewLandscape1.BackgroundImageLayout = ImageLayout.Stretch;
     viewLandscape1.Charge = 10;
     viewLandscape1.Image = ViewLandscape.ImageSelection.Midday;
     viewLandscape1.Location = new Point(6, 0x13);
     viewLandscape1.MaximumSize = new Size(0x15f, 0x101);
     viewLandscape1.Name = "viewLandscape1";
     viewLandscape1.Size = new Size(0xd9, 0x9c);
     viewLandscape1.TabIndex = 0x11;
     viewLandscape1.Temperature = "25.0\x00b0C";
     base.AutoScaleDimensions = new SizeF(6f, 13f);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     BackColor = Color.White;
     base.ClientSize = new Size(0x39e, 0x20c);
     base.Controls.Add(groupBox2);
     base.Controls.Add(tabControl1);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.Name = "EnergyHarvesting_Demo_CP";
     Text = "Energy Harvesting Demo Application";
     base.Load += new EventHandler(Harvesting_Demo_CP_Load);
     base.Shown += new EventHandler(Harvesting_Demo_CP_Shown);
     base.FormClosing += new FormClosingEventHandler(Harvesting_Demo_CP_FormClosing);
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBox5.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     tabPage3.ResumeLayout(false);
     groupBoxNodeInfo4.ResumeLayout(false);
     groupBoxNodeInfo4.PerformLayout();
     groupBoxNodeInfo3.ResumeLayout(false);
     groupBoxNodeInfo3.PerformLayout();
     groupBoxNodeInfo2.ResumeLayout(false);
     groupBoxNodeInfo2.PerformLayout();
     groupBoxNodeInfo1.ResumeLayout(false);
     groupBoxNodeInfo1.PerformLayout();
     groupBox2.ResumeLayout(false);
     groupBoxLandscape4.ResumeLayout(false);
     groupBoxLandscape2.ResumeLayout(false);
     groupBoxLandscape3.ResumeLayout(false);
     groupBoxLandscape1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
Exemplo n.º 2
0
 public LandscapeControls(GroupBox _group, ViewLandscape _landscape)
 {
     group = _group;
     landscape = _landscape;
 }