Пример #1
0
 private void ExpandNode(object sender, TreeNode src)
 {
     if (((Control)sender).InvokeRequired)
     {
         ChangeNodeCallback d = new ChangeNodeCallback(ExpandNode);
         this.Invoke(d, new object[] { sender, src });
     }
     else
     {
         PlexUtils.populateSubNodes(src, this);
     }
 }
Пример #2
0
 private void ClearNodes(object sender, TreeNode src)
 {
     if (((Control)sender).InvokeRequired)
     {
         ChangeNodeCallback d = new ChangeNodeCallback(ClearNodes);
         this.Invoke(d, new object[] { sender, src });
     }
     else
     {
         Application.DoEvents();
         src.Nodes.Clear();
     }
 }
Пример #3
0
 private void ClearNodes(object sender, TreeNode src)
 {
     if (((Control)sender).InvokeRequired)
     {
         ChangeNodeCallback d = new ChangeNodeCallback(ClearNodes);
         try
         {
             this.Invoke(d, new object[] { sender, src });
         } catch { }
     }
     else
     {
         src.Nodes.Clear();
     }
 }