예제 #1
0
 private void AddClientFormNode(string name, SocketInfo si)
 {
     TreeNode ch = rootNode1.Nodes.Add(name, name, 7, 7);
     index1++;
     ClientForm form2 = new ClientForm();
     if(si != null)
        form2.SocketInfo = si;
     TabPage tp = addPage(name, form2);
     tp.ImageIndex = 2;
     ch.Tag = tp;
     rootNode1.ExpandAll();
     deviceTree.SelectedNode = ch;
 }
예제 #2
0
        private void AddClientFormNode(string name, SocketInfo si)
        {
            TreeNode ch = rootNode1.Nodes.Add(name, name, 7, 7);

            index1++;
            ClientForm form2 = new ClientForm();

            if (si != null)
            {
                form2.SocketInfo = si;
            }
            TabPage tp = addPage(name, form2);

            tp.ImageIndex = 2;
            ch.Tag        = tp;
            rootNode1.ExpandAll();
            deviceTree.SelectedNode = ch;
        }