示例#1
0
 private void QueryNode(Node node)
 {
     _node = node;
     _message = new FindNode(_engine.LocalId, node.Id);
     _task = new SendQueryTask(_engine, _message, node);
     _task.Completed += TaskComplete;
     _task.Execute();
 }
 public void SelectByNodeFullPath(string nodetext)
 {
     FindNode f = new FindNode(treeView1);
     bool b = f.SelectByNodeFullPath(nodetext);
     if(!b)
     {
         if(computerNode!=null)
         {
             treeView1.SelectedNode = computerNode;
         }
     }
 }
示例#3
0
        private void BtnsClick(string s)
        {
            if (s.EndsWith("\\"))
                s = s.Remove(s.Length - 1, 1);//移除  字符 /

            FindNode fd = new FindNode(treeView1);
            fd.SelectByNodeFullPath(s);

            DisposeButtons();
            CreateButtons(s);
        }