示例#1
0
 private void InitializeComponent()
 {
     components = new Container();
     ComponentResourceManager resources = new ComponentResourceManager(typeof(Security_Demo_CP));
     toolTip1 = new ToolTip(components);
     groupBox5 = new GroupBox();
     viewEZMacNetwork1 = new ViewEZMacNetwork();
     groupBox1 = new GroupBox();
     viewRssi1 = new ViewRssi();
     tabControl1 = new TabControl();
     tabPage1 = new TabPage();
     tabPage2 = new TabPage();
     viewDataReceiver1 = new ViewDataReceiver();
     tabPage3 = new TabPage();
     viewNodeInfo4 = new ViewNodeInfo();
     viewNodeInfo3 = new ViewNodeInfo();
     viewNodeInfo2 = new ViewNodeInfo();
     viewNodeInfo1 = new ViewNodeInfo();
     viewAlarmPanel1 = new ViewAlarmPanel();
     viewHouse = new ViewHouse();
     groupBox5.SuspendLayout();
     groupBox1.SuspendLayout();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     tabPage2.SuspendLayout();
     tabPage3.SuspendLayout();
     base.SuspendLayout();
     toolTip1.AutoPopDelay = 0x1388;
     toolTip1.InitialDelay = 50;
     toolTip1.IsBalloon = true;
     toolTip1.ReshowDelay = 100;
     toolTip1.ToolTipIcon = ToolTipIcon.Info;
     toolTip1.ToolTipTitle = "Information";
     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;
     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;
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Controls.Add(tabPage2);
     tabControl1.Controls.Add(tabPage3);
     tabControl1.Location = new Point(0x1ba, 8);
     tabControl1.Name = "tabControl1";
     tabControl1.SelectedIndex = 0;
     tabControl1.Size = new Size(430, 0x200);
     tabControl1.TabIndex = 12;
     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";
     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(viewNodeInfo4);
     tabPage3.Controls.Add(viewNodeInfo3);
     tabPage3.Controls.Add(viewNodeInfo2);
     tabPage3.Controls.Add(viewNodeInfo1);
     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";
     viewNodeInfo4.Location = new Point(110, 0x151);
     viewNodeInfo4.Name = "viewNodeInfo4";
     viewNodeInfo4.NodeName = "NodeName";
     viewNodeInfo4.Size = new Size(0xd8, 90);
     viewNodeInfo4.TabIndex = 3;
     viewNodeInfo3.Location = new Point(110, 0xf1);
     viewNodeInfo3.Name = "viewNodeInfo3";
     viewNodeInfo3.NodeName = "NodeName";
     viewNodeInfo3.Size = new Size(0xd8, 90);
     viewNodeInfo3.TabIndex = 2;
     viewNodeInfo2.BackColor = Color.White;
     viewNodeInfo2.Location = new Point(110, 0x91);
     viewNodeInfo2.Name = "viewNodeInfo2";
     viewNodeInfo2.NodeName = "NodeName";
     viewNodeInfo2.Size = new Size(0xd8, 90);
     viewNodeInfo2.TabIndex = 1;
     viewNodeInfo1.BackColor = Color.White;
     viewNodeInfo1.Location = new Point(110, 0x31);
     viewNodeInfo1.Name = "viewNodeInfo1";
     viewNodeInfo1.NodeName = "NodeName";
     viewNodeInfo1.Size = new Size(0xd8, 90);
     viewNodeInfo1.TabIndex = 0;
     viewAlarmPanel1.BackgroundImage = (Image) resources.GetObject("viewAlarmPanel1.BackgroundImage");
     viewAlarmPanel1.BackgroundImageLayout = ImageLayout.None;
     viewAlarmPanel1.ForeColor = Color.Transparent;
     viewAlarmPanel1.Location = new Point(0x29, 0x117);
     viewAlarmPanel1.Name = "viewAlarmPanel1";
     viewAlarmPanel1.Size = new Size(0x162, 0xf2);
     viewAlarmPanel1.TabIndex = 7;
     viewAlarmPanel1.UnarmCode = "4321";
     viewHouse.BackgroundImage = (Image) resources.GetObject("viewHouse.BackgroundImage");
     viewHouse.BackgroundImageLayout = ImageLayout.None;
     viewHouse.Location = new Point(8, 8);
     viewHouse.Name = "viewHouse";
     viewHouse.Size = new Size(0x1a7, 0x109);
     viewHouse.TabIndex = 6;
     viewHouse.DoubleClick += new EventHandler(viewHouse_DoubleClick);
     base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     BackColor = Color.White;
     base.ClientSize = new Size(880, 0x210);
     base.Controls.Add(viewAlarmPanel1);
     base.Controls.Add(tabControl1);
     base.Controls.Add(viewHouse);
     base.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     base.Name = "Security_Demo_CP";
     Text = "Security Demo Application";
     base.Load += new EventHandler(Security_Demo_CP_Load);
     base.Shown += new EventHandler(Security_Demo_CP_Shown);
     base.FormClosing += new FormClosingEventHandler(formClosingEventHandler);
     groupBox5.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     tabPage3.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#2
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);
 }
示例#3
0
 private void InitializeComponent()
 {
     ComponentResourceManager resources = new ComponentResourceManager(typeof(RF_To_USB_Network_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();
     groupBox2 = new GroupBox();
     groupBoxNode4 = new GroupBox();
     viewProgressPot4 = new ViewProgressValue();
     viewProgressTemp4 = new ViewProgressValue();
     groupBoxNode3 = new GroupBox();
     viewProgressPot3 = new ViewProgressValue();
     viewProgressTemp3 = new ViewProgressValue();
     groupBoxNode2 = new GroupBox();
     viewProgressPot2 = new ViewProgressValue();
     viewProgressTemp2 = new ViewProgressValue();
     groupBoxNode1 = new GroupBox();
     viewProgressPot1 = new ViewProgressValue();
     viewProgressTemp1 = new ViewProgressValue();
     tabControl1.SuspendLayout();
     tabPage1.SuspendLayout();
     groupBox1.SuspendLayout();
     groupBox5.SuspendLayout();
     tabPage2.SuspendLayout();
     groupBox2.SuspendLayout();
     groupBoxNode4.SuspendLayout();
     groupBoxNode3.SuspendLayout();
     groupBoxNode2.SuspendLayout();
     groupBoxNode1.SuspendLayout();
     base.SuspendLayout();
     tabControl1.Controls.Add(tabPage1);
     tabControl1.Controls.Add(tabPage2);
     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;
     groupBox2.Controls.Add(groupBoxNode4);
     groupBox2.Controls.Add(groupBoxNode3);
     groupBox2.Controls.Add(groupBoxNode2);
     groupBox2.Controls.Add(groupBoxNode1);
     groupBox2.Location = new Point(7, 6);
     groupBox2.Name = "groupBox2";
     groupBox2.Size = new Size(0x1df, 0x200);
     groupBox2.TabIndex = 0x10;
     groupBox2.TabStop = false;
     groupBoxNode4.Controls.Add(viewProgressPot4);
     groupBoxNode4.Controls.Add(viewProgressTemp4);
     groupBoxNode4.Enabled = false;
     groupBoxNode4.Location = new Point(0xf2, 0xfd);
     groupBoxNode4.Name = "groupBoxNode4";
     groupBoxNode4.Size = new Size(230, 0x9c);
     groupBoxNode4.TabIndex = 0x16;
     groupBoxNode4.TabStop = false;
     groupBoxNode4.Text = "Node #4";
     viewProgressPot4.Image = (Image) resources.GetObject("viewProgressPot4.Image");
     viewProgressPot4.Location = new Point(6, 0x57);
     viewProgressPot4.Maximum = 1000.0;
     viewProgressPot4.Minimum = 0.0;
     viewProgressPot4.Name = "viewProgressPot4";
     viewProgressPot4.Size = new Size(0xda, 0x3e);
     viewProgressPot4.TabIndex = 1;
     viewProgressPot4.TextGroup = "Potentiometer";
     viewProgressPot4.TextMax = "1000";
     viewProgressPot4.TextMin = "0";
     viewProgressPot4.TextUnits = "";
     viewProgressPot4.Value = 500.0;
     viewProgressTemp4.Image = (Image) resources.GetObject("viewProgressTemp4.Image");
     viewProgressTemp4.Location = new Point(6, 0x13);
     viewProgressTemp4.Maximum = 85.0;
     viewProgressTemp4.Minimum = -40.0;
     viewProgressTemp4.Name = "viewProgressTemp4";
     viewProgressTemp4.Size = new Size(0xda, 0x3e);
     viewProgressTemp4.TabIndex = 0;
     viewProgressTemp4.TextGroup = "Temperature";
     viewProgressTemp4.TextMax = "85 \x00b0C";
     viewProgressTemp4.TextMin = "-40 \x00b0C";
     viewProgressTemp4.TextUnits = "\x00b0C";
     viewProgressTemp4.Value = 25.0;
     groupBoxNode3.Controls.Add(viewProgressPot3);
     groupBoxNode3.Controls.Add(viewProgressTemp3);
     groupBoxNode3.Enabled = false;
     groupBoxNode3.Location = new Point(6, 0xfd);
     groupBoxNode3.Name = "groupBoxNode3";
     groupBoxNode3.Size = new Size(230, 0x9c);
     groupBoxNode3.TabIndex = 0x16;
     groupBoxNode3.TabStop = false;
     groupBoxNode3.Text = "Node #3";
     viewProgressPot3.Image = (Image) resources.GetObject("viewProgressPot3.Image");
     viewProgressPot3.Location = new Point(6, 0x57);
     viewProgressPot3.Maximum = 1000.0;
     viewProgressPot3.Minimum = 0.0;
     viewProgressPot3.Name = "viewProgressPot3";
     viewProgressPot3.Size = new Size(0xda, 0x3e);
     viewProgressPot3.TabIndex = 1;
     viewProgressPot3.TextGroup = "Potentiometer";
     viewProgressPot3.TextMax = "1000";
     viewProgressPot3.TextMin = "0";
     viewProgressPot3.TextUnits = "";
     viewProgressPot3.Value = 500.0;
     viewProgressTemp3.Image = (Image) resources.GetObject("viewProgressTemp3.Image");
     viewProgressTemp3.Location = new Point(6, 0x13);
     viewProgressTemp3.Maximum = 85.0;
     viewProgressTemp3.Minimum = -40.0;
     viewProgressTemp3.Name = "viewProgressTemp3";
     viewProgressTemp3.Size = new Size(0xda, 0x3e);
     viewProgressTemp3.TabIndex = 0;
     viewProgressTemp3.TextGroup = "Temperature";
     viewProgressTemp3.TextMax = "85 \x00b0C";
     viewProgressTemp3.TextMin = "-40 \x00b0C";
     viewProgressTemp3.TextUnits = "\x00b0C";
     viewProgressTemp3.Value = 25.0;
     groupBoxNode2.Controls.Add(viewProgressPot2);
     groupBoxNode2.Controls.Add(viewProgressTemp2);
     groupBoxNode2.Enabled = false;
     groupBoxNode2.Location = new Point(0xf2, 0x5b);
     groupBoxNode2.Name = "groupBoxNode2";
     groupBoxNode2.Size = new Size(230, 0x9c);
     groupBoxNode2.TabIndex = 0x16;
     groupBoxNode2.TabStop = false;
     groupBoxNode2.Text = "Node #2";
     viewProgressPot2.Image = (Image) resources.GetObject("viewProgressPot2.Image");
     viewProgressPot2.Location = new Point(6, 0x57);
     viewProgressPot2.Maximum = 1000.0;
     viewProgressPot2.Minimum = 0.0;
     viewProgressPot2.Name = "viewProgressPot2";
     viewProgressPot2.Size = new Size(0xda, 0x3e);
     viewProgressPot2.TabIndex = 1;
     viewProgressPot2.TextGroup = "Potentiometer";
     viewProgressPot2.TextMax = "1000";
     viewProgressPot2.TextMin = "0";
     viewProgressPot2.TextUnits = "";
     viewProgressPot2.Value = 500.0;
     viewProgressTemp2.Image = (Image) resources.GetObject("viewProgressTemp2.Image");
     viewProgressTemp2.Location = new Point(6, 0x13);
     viewProgressTemp2.Maximum = 85.0;
     viewProgressTemp2.Minimum = -40.0;
     viewProgressTemp2.Name = "viewProgressTemp2";
     viewProgressTemp2.Size = new Size(0xda, 0x3e);
     viewProgressTemp2.TabIndex = 0;
     viewProgressTemp2.TextGroup = "Temperature";
     viewProgressTemp2.TextMax = "85 \x00b0C";
     viewProgressTemp2.TextMin = "-40 \x00b0C";
     viewProgressTemp2.TextUnits = "\x00b0C";
     viewProgressTemp2.Value = 25.0;
     groupBoxNode1.Controls.Add(viewProgressPot1);
     groupBoxNode1.Controls.Add(viewProgressTemp1);
     groupBoxNode1.Enabled = false;
     groupBoxNode1.Location = new Point(6, 0x5b);
     groupBoxNode1.Name = "groupBoxNode1";
     groupBoxNode1.Size = new Size(230, 0x9c);
     groupBoxNode1.TabIndex = 0x15;
     groupBoxNode1.TabStop = false;
     groupBoxNode1.Text = "Node #1";
     viewProgressPot1.Image = (Image) resources.GetObject("viewProgressPot1.Image");
     viewProgressPot1.Location = new Point(6, 0x57);
     viewProgressPot1.Maximum = 1000.0;
     viewProgressPot1.Minimum = 0.0;
     viewProgressPot1.Name = "viewProgressPot1";
     viewProgressPot1.Size = new Size(0xda, 0x3e);
     viewProgressPot1.TabIndex = 1;
     viewProgressPot1.TextGroup = "Potentiometer";
     viewProgressPot1.TextMax = "1000";
     viewProgressPot1.TextMin = "0";
     viewProgressPot1.TextUnits = "";
     viewProgressPot1.Value = 500.0;
     viewProgressTemp1.Image = (Image) resources.GetObject("viewProgressTemp1.Image");
     viewProgressTemp1.Location = new Point(6, 0x13);
     viewProgressTemp1.Maximum = 85.0;
     viewProgressTemp1.Minimum = -40.0;
     viewProgressTemp1.Name = "viewProgressTemp1";
     viewProgressTemp1.Size = new Size(0xda, 0x3e);
     viewProgressTemp1.TabIndex = 0;
     viewProgressTemp1.TextGroup = "Temperature";
     viewProgressTemp1.TextMax = "85 \x00b0C";
     viewProgressTemp1.TextMin = "-40 \x00b0C";
     viewProgressTemp1.TextUnits = "\x00b0C";
     viewProgressTemp1.Value = 25.0;
     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 = "RF_To_USB_Network_Demo_CP";
     Text = "RF to USB Network Demo Application";
     base.Load += new EventHandler(RF_To_USB_Network_Demo_CP_Load);
     base.Shown += new EventHandler(RF_To_USB_Network_Demo_CP_Shown);
     base.FormClosing += new FormClosingEventHandler(RF_To_USB_Network_Demo_CP_FormClosing);
     tabControl1.ResumeLayout(false);
     tabPage1.ResumeLayout(false);
     groupBox1.ResumeLayout(false);
     groupBox5.ResumeLayout(false);
     tabPage2.ResumeLayout(false);
     groupBox2.ResumeLayout(false);
     groupBoxNode4.ResumeLayout(false);
     groupBoxNode3.ResumeLayout(false);
     groupBoxNode2.ResumeLayout(false);
     groupBoxNode1.ResumeLayout(false);
     base.ResumeLayout(false);
 }
示例#4
0
            public void setStatus(ViewEZMacNetwork.Status a_stat)
            {
                switch (a_stat)
                {
                    case ViewEZMacNetwork.Status.Initial:
                        this._status = ViewEZMacNetwork.Status.Initial;
                        this._connectionStatus = ViewEZMacNetwork.Status.ConnectionRecovered;
                        this.setNodeBackground(ViewEZMacNetwork.NodeBackgorund.Invisible);
                        this._connectionTimer.Stop();
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = false;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = false;
                        }
                        if (this._timeTextBox != null)
                        {
                            this._timeTextBox.Visible = false;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = false;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = false;
                        }
                        if (this._humidity == null)
                        {
                            break;
                        }
                        this._humidity.Visible = false;
                        return;

                    case ViewEZMacNetwork.Status.Arming:
                        this._status = ViewEZMacNetwork.Status.Arming;
                        if (this._connectionStatus != ViewEZMacNetwork.Status.ConnectionLost)
                        {
                            this.setNodeBackground(ViewEZMacNetwork.NodeBackgorund.Green);
                        }
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = true;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = true;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = true;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = true;
                        }
                        if (!this._isHumidityAvailable || (this._humidity == null))
                        {
                            break;
                        }
                        this._humidity.Visible = true;
                        return;

                    case ViewEZMacNetwork.Status.Armed:
                        this._status = ViewEZMacNetwork.Status.Armed;
                        if (this._status != ViewEZMacNetwork.Status.ConnectionLost)
                        {
                            this.setNodeBackground(ViewEZMacNetwork.NodeBackgorund.Green);
                        }
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = true;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = true;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = true;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = true;
                        }
                        if (!this._isHumidityAvailable || (this._humidity == null))
                        {
                            break;
                        }
                        this._humidity.Visible = true;
                        return;

                    case ViewEZMacNetwork.Status.Unarmed:
                        this._status = ViewEZMacNetwork.Status.Unarmed;
                        if (this._connectionStatus != ViewEZMacNetwork.Status.ConnectionLost)
                        {
                            this.setNodeBackground(ViewEZMacNetwork.NodeBackgorund.Gray);
                        }
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = true;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = true;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = true;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = true;
                        }
                        if (!this._isHumidityAvailable || (this._humidity == null))
                        {
                            break;
                        }
                        this._humidity.Visible = true;
                        return;

                    case ViewEZMacNetwork.Status.Alarm:
                        this._status = ViewEZMacNetwork.Status.Alarm;
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = true;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = true;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = true;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "PB";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = true;
                        }
                        if (this._isHumidityAvailable && (this._humidity != null))
                        {
                            this._humidity.Visible = true;
                        }
                        break;

                    case ViewEZMacNetwork.Status.ConnectionLost:
                        this._connectionStatus = ViewEZMacNetwork.Status.ConnectionLost;
                        this.setNodeBackground(ViewEZMacNetwork.NodeBackgorund.Red);
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = false;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = false;
                        }
                        if (this._timeTextBox != null)
                        {
                            this._timeTextBox.Visible = false;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = false;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = false;
                        }
                        if (this._humidity == null)
                        {
                            break;
                        }
                        this._humidity.Visible = false;
                        return;

                    case ViewEZMacNetwork.Status.ConnectionRecovered:
                        this._connectionStatus = ViewEZMacNetwork.Status.ConnectionRecovered;
                        this.setStatus(this._status);
                        if (this._arrow != null)
                        {
                            this._arrow.Visible = true;
                        }
                        if (this._idTextBox != null)
                        {
                            this._idTextBox.Visible = true;
                        }
                        if (this._battery != null)
                        {
                            this._battery.Visible = true;
                        }
                        if (this._infoWindow != null)
                        {
                            this._infoWindow.Trigger = "";
                        }
                        if (this._thermometer != null)
                        {
                            this._thermometer.Visible = true;
                        }
                        if (!this._isHumidityAvailable || (this._humidity == null))
                        {
                            break;
                        }
                        this._humidity.Visible = true;
                        return;

                    default:
                        return;
                }
            }
示例#5
0
            public void setNodeImage(ViewEZMacNetwork.NodeLook a_type)
            {
                Bitmap bitmap = null;
                switch (a_type)
                {
                    case ViewEZMacNetwork.NodeLook.Empty:
                        bitmap = null;
                        break;

                    case ViewEZMacNetwork.NodeLook.EzLink:
                        bitmap = (Bitmap) this._myResources.GetObject("HWNode_EZLink");
                        break;

                    case ViewEZMacNetwork.NodeLook.KeyFob:
                        bitmap = (Bitmap) this._myResources.GetObject("HWNode_KeyFOB");
                        break;

                    case ViewEZMacNetwork.NodeLook.Henrietta:
                        bitmap = (Bitmap) this._myResources.GetObject("HWNode_RFtoUSB");
                        break;

                    case ViewEZMacNetwork.NodeLook.EnergyHarvester:
                        bitmap = (Bitmap) this._myResources.GetObject("HWNode_RFtoUSB");
                        break;

                    case ViewEZMacNetwork.NodeLook.SensorNode:
                        bitmap = (Bitmap) this._myResources.GetObject("HWNode_SensorNode");
                        break;
                }
                this._pBox.Image = bitmap;
            }
示例#6
0
            private void setNodeBackground(ViewEZMacNetwork.NodeBackgorund a_background)
            {
                Bitmap bitmap = null;
                switch (a_background)
                {
                    case ViewEZMacNetwork.NodeBackgorund.Invisible:
                        this._pBox.Visible = false;
                        this._pBox.Image = null;
                        return;

                    case ViewEZMacNetwork.NodeBackgorund.Gray:
                        bitmap = (Bitmap) this._myResources.GetObject("GrayShading");
                        break;

                    case ViewEZMacNetwork.NodeBackgorund.Green:
                        bitmap = (Bitmap) this._myResources.GetObject("GreenShading");
                        break;

                    case ViewEZMacNetwork.NodeBackgorund.Red:
                        bitmap = (Bitmap) this._myResources.GetObject("RedShading");
                        break;
                }
                this._pBox.BackgroundImage = bitmap;
                this._pBox.Visible = true;
            }
示例#7
0
 private void setNode(ViewEZMacNetwork.NodeBackgorund a_background, ViewEZMacNetwork.NodeLook a_type)
 {
     this.setNodeBackground(a_background);
     this.setNodeImage(a_type);
 }
示例#8
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
     this.groupBox5 = new System.Windows.Forms.GroupBox();
     this.viewEZMacNetwork1 = new NewWDS.Demo_applications.Network_demo.UserControls.ViewEZMacNetwork();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.viewRssi1 = new NewWDS.Demo_applications.Network_demo.UserControls.ViewRssi();
     this.viewDataReceiver1 = new NewWDS.Demo_applications.Network_demo.UserControls.ViewDataReceiver();
     this.groupBox5.SuspendLayout();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // toolTip1
     //
     this.toolTip1.AutoPopDelay = 5000;
     this.toolTip1.InitialDelay = 50;
     this.toolTip1.IsBalloon = true;
     this.toolTip1.ReshowDelay = 100;
     this.toolTip1.ToolTipIcon = System.Windows.Forms.ToolTipIcon.Info;
     this.toolTip1.ToolTipTitle = "To open/close Log Window";
     //
     // groupBox5
     //
     this.groupBox5.Controls.Add(this.viewEZMacNetwork1);
     this.groupBox5.Location = new System.Drawing.Point(12, 12);
     this.groupBox5.Name = "groupBox5";
     this.groupBox5.Size = new System.Drawing.Size(475, 308);
     this.groupBox5.TabIndex = 3;
     this.groupBox5.TabStop = false;
     this.groupBox5.Text = "EZMac(tm) network status";
     //
     // viewEZMacNetwork1
     //
     this.viewEZMacNetwork1.BackColor = System.Drawing.Color.Transparent;
     this.viewEZMacNetwork1.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
     this.viewEZMacNetwork1.Location = new System.Drawing.Point(89, 19);
     this.viewEZMacNetwork1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.viewEZMacNetwork1.Name = "viewEZMacNetwork1";
     this.viewEZMacNetwork1.Size = new System.Drawing.Size(302, 270);
     this.viewEZMacNetwork1.TabIndex = 0;
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.viewRssi1);
     this.groupBox1.Location = new System.Drawing.Point(12, 326);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(475, 171);
     this.groupBox1.TabIndex = 10;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "RSSI";
     //
     // viewRssi1
     //
     this.viewRssi1.Location = new System.Drawing.Point(6, 19);
     this.viewRssi1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
     this.viewRssi1.Name = "viewRssi1";
     this.viewRssi1.Size = new System.Drawing.Size(463, 137);
     this.viewRssi1.TabIndex = 7;
     //
     // viewDataReceiver1
     //
     this.viewDataReceiver1.CustomStringConvertion = true;
     this.viewDataReceiver1.InsertHeader = true;
     this.viewDataReceiver1.Location = new System.Drawing.Point(493, 12);
     this.viewDataReceiver1.Margin = new System.Windows.Forms.Padding(4);
     this.viewDataReceiver1.Name = "viewDataReceiver1";
     this.viewDataReceiver1.Size = new System.Drawing.Size(393, 485);
     this.viewDataReceiver1.TabIndex = 0;
     //
     // EzMacNetwork_Demo_CP
     //
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;
     this.BackColor = System.Drawing.Color.White;
     this.ClientSize = new System.Drawing.Size(894, 506);
     this.Controls.Add(this.viewDataReceiver1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.groupBox5);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Name = "EzMacNetwork_Demo_CP";
     this.Text = "EzMac Network Demo Application";
     this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.formClosingEventHandler);
     this.Load += new System.EventHandler(this.EzMacNetwork_Demo_CP_Load);
     this.Shown += new System.EventHandler(this.EzMacNetwork_Demo_CP_Shown);
     this.groupBox5.ResumeLayout(false);
     this.groupBox1.ResumeLayout(false);
     this.ResumeLayout(false);
 }