Example #1
0
 private void IOTree_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e)
 {
     if (e.Clicks != 1)
     {
         return;
     }
     if (e.Node is IODeviceNode)
     {
         IOCommunicationNode comNode = e.Node.Parent as IOCommunicationNode;
         IOServerNode        sNode   = comNode.Parent as IOServerNode;
         IODeviceNode        dNode   = e.Node as IODeviceNode;
         FormManager.OpenDeviceParas(sNode.Server, comNode.Communication, dNode.Device);
     }
 }
Example #2
0
 public void AddChildenNode(IODeviceNode node)
 {
     this.Nodes.Add(node);
     node.ChangedNode();
 }