Exemplo n.º 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);
 }
Exemplo n.º 2
0
 private void IdentificationRequested(ViewNodeInfo a_node)
 {
     for (int i = 1; i <= 4; i++)
     {
         if (viewEZMacNetwork1.getAssociatedNodeWindow(i) == a_node)
         {
             _blinkedNodeIndex = i;
             send_ControlLed(_blinkedNodeIndex, 1);
             _blinkTimer.Start();
             return;
         }
     }
 }