private void btnSourceLoad_Click(object sender, EventArgs e) { if (txtSourceUrl.TextLength < 2) { MessageBox.Show("The url cannot be blank\nURL must look like:\nhttp://<reportURLorIP>/ReportServerSQL", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } var stopLoad = new Stopwatch(); stopLoad.Start(); currentStatus.Text = Resources.Getting_reports__please_wait; grpSource.Enabled = false; tabSourceSettings.SelectTab("tabSourceStatus"); _countFolderSource = _countReportsSource = 0; Application.DoEvents(); _sourceServicesMgmt = cbSourceIntegratedAuth.Checked ? new ReportingServicesMgmt(txtSourceUrl.Text, null, null, true) : new ReportingServicesMgmt(txtSourceUrl.Text, tbSourceUser.Text, tbSourcePassword.Text, false); rptSourceTree.Nodes.Clear(); rptSourceTree.BeginUpdate(); LoadTreeNode(RootFolder, rptSourceTree.Nodes, _sourceServicesMgmt.ReportingService, true); rptSourceTree.EndUpdate(); currentStatus.Text = String.Empty; grpSource.Enabled = true; stopLoad.Stop(); lbSourceStatus.Text += Environment.NewLine + String.Format("Process took {0}", stopLoad.Elapsed); }
private void btnDestLoad_Click(object sender, EventArgs e) { currentStatus.Text = Resources.Getting_reports__please_wait; grpDest.Enabled = false; Application.DoEvents(); _destServicesMgmt = cbDestIntegratedAuth.Checked ? new ReportingServicesMgmt(txtDestUrl.Text, null, null, true) : new ReportingServicesMgmt(txtDestUrl.Text, tbDestUser.Text, tbDestPassword.Text, true); rptDestTree.Nodes.Clear(); rptDestTree.BeginUpdate(); LoadTreeNode(RootFolder, rptDestTree.Nodes, _destServicesMgmt.ReportingService); rptDestTree.EndUpdate(); currentStatus.Text = String.Empty; grpDest.Enabled = true; }
private void btnDestLoad_Click(object sender, EventArgs e) { if (txtDestUrl.TextLength < 2) { MessageBox.Show("The url cannot be blank\nURL must look like:\nhttp://<reportURLorIP>/ReportServerSQL", Resources.Error, MessageBoxButtons.OK, MessageBoxIcon.Error); return; } currentStatus.Text = Resources.Getting_reports__please_wait; // Updates bottom of window grpDest.Enabled = false; Application.DoEvents(); _destServicesMgmt = cbDestIntegratedAuth.Checked ? new ReportingServicesMgmt(txtDestUrl.Text, null, null, true) : new ReportingServicesMgmt(txtDestUrl.Text, tbDestUser.Text, tbDestPassword.Text, false); rptDestTree.Nodes.Clear(); rptDestTree.BeginUpdate(); LoadTreeNode(RootFolder, rptDestTree.Nodes, _destServicesMgmt.ReportingService); rptDestTree.EndUpdate(); currentStatus.Text = String.Empty; grpDest.Enabled = true; }
private void btnSourceLoad_Click(object sender, EventArgs e) { var stopLoad = new Stopwatch(); stopLoad.Start(); currentStatus.Text = Resources.Getting_reports__please_wait; grpSource.Enabled = false; tabSourceSettings.SelectTab("tabSourceStatus"); _countFolderSource = _countReportsSource = 0; Application.DoEvents(); _sourceServicesMgmt = cbSourceIntegratedAuth.Checked ? new ReportingServicesMgmt(txtSourceUrl.Text, null, null, true) : new ReportingServicesMgmt(txtSourceUrl.Text, tbSourceUser.Text, tbSourcePassword.Text, true); rptSourceTree.Nodes.Clear(); rptSourceTree.BeginUpdate(); LoadTreeNode(RootFolder, rptSourceTree.Nodes, _sourceServicesMgmt.ReportingService, true); rptSourceTree.EndUpdate(); currentStatus.Text = String.Empty; grpSource.Enabled = true; stopLoad.Stop(); lbSourceStatus.Text += Environment.NewLine + String.Format("Process took {0}", stopLoad.Elapsed); }