private void treeViewParaman_AfterSelect(object sender, TreeViewEventArgs e)
        {
            if (e.Node.Nodes.Count > 0)
            {
                return;
            }

            listViewParm.Items.Clear();

            int fileNo = 0;
            int recNo  = 0;

            if (e.Node.Parent == null)
            {
                fileNo = e.Node.Index;
                recNo  = 0;
            }
            else
            {
                fileNo = e.Node.Parent.Index;
                recNo  = e.Node.Index;
            }

            short clientNo = CNetData.GetActiveClientNo();
            int   ret      = AddParItemFrmNet(fileNo, recNo, clientNo);

            if (ret < 0)
            {
                MessageBox.Show("网络读取参数出错!");
            }
        }
        public void InitParamanTreeView()
        {
            if (isParmanRead)
            {
                return;
            }

            treeViewParaman.Nodes.Clear();

            short clientNo = CNetData.GetActiveClientNo();

            if (NetDll.HncNetIsConnect(clientNo) == 0)
            {
                treeViewParaman.Nodes.Add(new TreeNode(STR_NO_CONNECTION));
            }
            else
            {
                int ret = AddParamanItemFrmNet(clientNo);
                if (ret < 0)
                {
                    MessageBox.Show("网络读取参数结构错误!");
                }
            }
        }