Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
 }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 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;
 }