コード例 #1
0
 private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     var progress = 25;
       backgroundWorker.ReportProgress(progress);
       var dataFetcher = new AgentDataFetcher(selectedAgents);
       backgroundWorker.ReportProgress(progress * 2);
       selectedAgents = dataFetcher.GCCAgentsWithCompleteAttributes();
       backgroundWorker.ReportProgress(progress * 4);
 }
コード例 #2
0
 private void AgentReportViewer_Load(object sender, EventArgs e)
 {
     dataGridView.Hide();
       dataGridView.RowHeadersVisible = false;
       dataGridView.MultiSelect = false;
       dataGridView.AutoGenerateColumns = true;
       selectedAgents = new List<GCCAgent> { agent };
       var dataFetcher = new AgentDataFetcher(selectedAgents);
       dataFetcher.GCCAgentsWithCompleteAttributes();
       PopulateDataGrid();
 }
コード例 #3
0
 private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     var dataFetcher = new AgentDataFetcher();
       allAgentsForComparison = dataFetcher.GCCAgentsWithCompleteAttributes();
       RankAgents();
 }