예제 #1
0
        private void metroButton1_Click_1(object sender, EventArgs e)
        {
            ControlForm controlForm = new ControlForm();

            controlForm.Show();
            this.Hide();
        }
예제 #2
0
 private void NodeControl_Item_Click(object sender, EventArgs e)
 {
     if (curSelectNode != null)
     {
         ArmClient armClient = null;
         if (FindDeviceByNoeId(curSelectNode.id, out armClient))
         {
             if (armClient.Status)
             {
                 ControlForm form = new ControlForm(armClient, curSelectNode);
                 form.Show();
             }
             else
             {
                 MessageBox.Show("该节点不在线");
             }
         }
     }
     else
     {
         return;
     }
 }
예제 #3
0
 public void NodeCapture()
 {
     if (curSelectNode != null)
     {
         ArmClient armClient = null;
         if (FindDeviceByNoeId(curSelectNode.id, out armClient))
         {
             if (armClient.Status)
             {
                 ControlForm form = new ControlForm(armClient, curSelectNode);
                 form.Show();
             }
             else
             {
                 MessageBox.Show("该节点不在线");
             }
         }
     }
     else
     {
         return;
     }
 }