/// <summary>
 /// Refreshes the source tree view.
 /// </summary>
 /// <param name="treeView">The tree view.</param>
 /// <param name="reportingService2005">The reporting service2005.</param>
 private static void RefreshSourceTreeView(TreeView treeView, ReportServerProperties reportingService2005)
 {
     treeView.BeginUpdate();
     treeView.Nodes.Clear();
     treeView.Nodes.Add(TreeViewHandling.GetFolderAsNodes(reportingService2005.ReportsServerInstance2005, false));
     treeView.EndUpdate();
     treeView.Tag = reportingService2005;
 }
        /// <summary>
        /// Loads the tree view panels from SQL Report Server.
        /// </summary>
        private void LoadTreeViewPanelsFromSrv()
        {
            try
            {
                string url = string.Format("{0}ReportService2005.asmx",
                                           EvaluateExpression(cmbSourceVariables.Text,
                                                              _taskHost.VariableDispenser));

                ReportServerSource = new ReportServerProperties(url);
                RefreshSourceTreeView(tvReportServerSource, ReportServerSource);
                ListrenderingExtensions(url);
                tvReportServerSource.ExpandAll();
            }
            catch (Exception exception)
            {
                MessageBox.Show(exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }