Exemplo n.º 1
0
 public void FillTreeview(ReportingService2005 reportService2005)
 {
     Cursor.Current = Cursors.WaitCursor;
     treeView1.BeginUpdate();
     treeView1.Nodes.Clear();
     treeView1.Nodes.Add(TreeViewHandling.GetFolderAsNodes(reportService2005, true));
     treeView1.EndUpdate();
     treeView1.ExpandAll();
     Cursor.Current = Cursors.Arrow;
 }
Exemplo n.º 2
0
 private static void RefreshSourceTreeView(TreeView treeView, ReportServerProperties reportingService2005)
 {
     if (treeView.InvokeRequired)
     {
         treeView.Invoke(new MethodInvoker(treeView.BeginUpdate));
         treeView.Invoke(new MethodInvoker(() => treeView.Nodes.Clear()));
         treeView.Invoke(new MethodInvoker(() => treeView.Nodes.Add(TreeViewHandling.GetFolderAsNodes(reportingService2005.ReportsServerInstance))));
         treeView.Invoke(new MethodInvoker(treeView.EndUpdate));
         treeView.Tag = reportingService2005;
     }
     else
     {
         treeView.BeginUpdate();
         treeView.Nodes.Clear();
         treeView.Nodes.Add(TreeViewHandling.GetFolderAsNodes(reportingService2005.ReportsServerInstance));
         treeView.EndUpdate();
         treeView.Tag = reportingService2005;
     }
 }