当前位置: 首页>>代码示例>>C#>>正文


C# RunWorkerCompletedEventArgs.get_Result方法代码示例

本文整理汇总了C#中System.ComponentModel.RunWorkerCompletedEventArgs.get_Result方法的典型用法代码示例。如果您正苦于以下问题:C# RunWorkerCompletedEventArgs.get_Result方法的具体用法?C# RunWorkerCompletedEventArgs.get_Result怎么用?C# RunWorkerCompletedEventArgs.get_Result使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.ComponentModel.RunWorkerCompletedEventArgs的用法示例。


在下文中一共展示了RunWorkerCompletedEventArgs.get_Result方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: m_WorkerThread_RunWorkerCompleted

 private void m_WorkerThread_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.m_RollingImage.set_Visible(false);
     this.m_ExecuteReport.set_Text(this.m_ExecuteReport.get_Tag().ToString());
     if (e.Error != null)
     {
         this.m_StatusLabel.set_Text("Ошибка");
         this.m_StatusLabel.set_ForeColor(System.Drawing.Color.Red);
         Messages.ShowException(this, e.Error);
     }
     else if (e.get_Cancelled())
     {
         this.m_StatusLabel.set_Text("Отменено");
         this.m_StatusLabel.set_ForeColor(System.Drawing.Color.Gray);
     }
     else
     {
         StiReport report = e.get_Result() as StiReport;
         if (report != null)
         {
             this.m_StatusLabel.set_Text("Сделано");
             this.m_StatusLabel.set_ForeColor(System.Drawing.Color.Green);
             if (this.m_NeedsRendering)
             {
                 report.Render(false);
             }
             if ((this.m_ReportPrintedHandler != null) && (report.CompiledReport != null))
             {
                 report.CompiledReport.Printed += this.m_ReportPrintedHandler;
             }
             report.Show((System.Windows.Forms.Form) this);
         }
         else
         {
             this.m_StatusLabel.set_Text("Отчет пуст");
             this.m_StatusLabel.set_ForeColor(System.Drawing.Color.IndianRed);
         }
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:39,代码来源:BaseReportForm.cs

示例2: workerProtocol_RunWorkerCompleted

 private void workerProtocol_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnProtocol.set_Image(Resources.REPORT);
     (e.get_Result() as StiReport).Show((System.Windows.Forms.IWin32Window) this);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:5,代码来源:AccountHouseHolderChangeView.cs

示例3: bwArea_RunWorkerCompleted

 private void bwArea_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (this.addressesSelectControl1.getChecked)
     {
         this.addressesDest = this.addressesDest ?? new ObjectList<LocalAddress>();
         this.addressesDest.Clear();
         this.addressesDest.AddRange((ObjectList<LocalAddress>) ((object[]) e.get_Result())[0]);
         this.addressesSource = this.addressesSource ?? new ObjectList<LocalAddress>();
         this.addressesSource.Clear();
         this.addressesSource.AddRange((ObjectList<LocalAddress>) ((object[]) e.get_Result())[1]);
     }
     else
     {
         this.addressesDest = this.addressesDest ?? new ObjectList<LocalAddress>();
         this.addressesDest.Clear();
         this.addressesDest.AddRange((ObjectList<LocalAddress>) e.get_Result());
         this.addressesSearch.Clear();
         this.addressesSource = this.addressesSource ?? new ObjectList<LocalAddress>();
         this.addressesSource.Clear();
         if (this.addressesDest.get_Count() == 0)
         {
             System.Windows.Forms.MessageBox.Show("По Вашему запросу адреса не найдено.", "Предупреждение", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Asterisk);
         }
         else if (this.addressesDest.get_Count() > 1)
         {
             this.addressesSource.AddRange(this.addressesDest);
         }
     }
     this.Load_AreaAddressesTrees();
     this.tsbSearch.set_Image(Resources.SEARCH);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:31,代码来源:AreaAddressesForm.cs

示例4: workerCompareServices_RunWorkerCompleted

 private void workerCompareServices_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         this.btnComprasion.set_Image(Resources.ARROW_RIGHT_16);
         Messages.ShowException(this, e.Error);
     }
     else
     {
         object[] objArray = e.get_Result() as object[];
         if ((objArray[0] as ObjectList<Service>).get_Count() == 0)
         {
             this.btnComprasion.set_Image(Resources.ARROW_RIGHT_16);
             Messages.ShowMessage("На заданных адресах отсутствуют услуги, поставляемые указанной организацией.");
         }
         else
         {
             this.isChangeParametrChangeHouseHolder = false;
             this.bsNewServices.set_DataSource(objArray[1]);
             this.bsOldServices.SuspendBinding();
             this.bsOldServices.set_DataSource(objArray[0]);
             this.bsOldServices.ResumeBinding();
             this.dt = new System.Data.DataTable();
             this.dt.Columns.Add("oldServiceId");
             this.dt.Columns.Add("oldServiceCode");
             this.dt.Columns.Add("oldServiceName");
             this.dt.Columns.Add("newServiceId");
             this.dt.Columns.Add("newServiceCode");
             this.dt.Columns.Add("newServiceName");
             this.dgvServicesComparison.set_DataSource(this.dt);
             this.tabctrlWizard.set_SelectedTab(this.tpLinking);
             this.btnComprasion.set_Image(Resources.ARROW_RIGHT_16);
         }
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:35,代码来源:AccountHouseHolderChangeView.cs

示例5: workerProcess_RunWorkerCompleted

 private void workerProcess_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnOK.set_Image(Resources.APPLY2);
     if (e.get_Result() == null)
     {
         Messages.ShowMessage("Групповая операция по смене управляющей компании выполнена");
         this.ClearAll();
     }
     else
     {
         Messages.ShowException(this, e.get_Result() as System.Exception);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:13,代码来源:AccountHouseHolderChangeView.cs

示例6: bwLoadAddresses_RunWorkerCompleted

 private void bwLoadAddresses_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.treeAddresses.Load((ObjectList<LocalAddress>) e.get_Result(), true);
     this.btnWaiting.set_Visible(false);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:5,代码来源:AddressAreaGroupForm.cs

示例7: m_SearchWorker_RunWorkerCompleted

 private void m_SearchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnSearch.set_Image(null);
     if (e.Error != null)
     {
         BalloonWindow.Show(this.btnSearch, e.Error.get_Message());
     }
     else
     {
         this.SearchResults = (ObjectList<Account>) e.get_Result();
         System.EventHandler searchCompleted = this.SearchCompleted;
         if (searchCompleted != null)
         {
             searchCompleted(this, System.EventArgs.Empty);
         }
         if (this.m_IsSearchByBarcode)
         {
             BarcodeInfo info = BarcodeInfo.ParseBarcode(this.Barcode, this.BarcodeParseAlgorithm.Value);
             Account byNumber = null;
             if ((this.SearchResults != null) && (this.SearchResults.get_Count() > 0))
             {
                 byNumber = this.SearchResults.get_Item(0);
             }
             else if (info.AccountNumber != null)
             {
                 byNumber = Account.GetByNumber(info.AccountNumber);
             }
             else
             {
                 return;
             }
             if (Settings.Default.CashierCashFlowType == 0)
             {
                 Messages.ShowError("Необходимо выбрать режим работы кассы в настройках программы!");
             }
             else
             {
                 new ProcessPaymentForm(byNumber, this.PackNumber, this.PaymentOrderNumber, this.PaymentOrderDate, this.Agent, this.Barcode, this.m_posView, this.PaymentOrderType, this.m_ServiceCodeTransferBank.SelectedFasetItem.Id, this.selPaymentOrder.PaymentOrderPackId) { processPaymentFormtView = { BarcodeInfo = info } }.ShowDialog(this);
                 this.m_IsSearchByBarcode = false;
                 this.m_Barcode.Focus();
                 this.m_Barcode.SelectAll();
             }
         }
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:45,代码来源:AccountSearchControl.cs

示例8: m_WorkerFind_RunWorkerCompleted

 private void m_WorkerFind_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         System.Windows.Forms.MessageBox.Show(e.Error.get_Message());
     }
     ObjectList<GroupOperation> groupOperations = e.get_Result() as ObjectList<GroupOperation>;
     this.accountServiceJournalView.Clear();
     this.groupOperationsView.UpdateView(groupOperations);
     this.groupOperationsView.SetEnable(true);
     this.selAccount.set_Enabled(true);
     this.btnSelect.set_Image(null);
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:13,代码来源:JnOperationsView.cs

示例9: bckWrkrProcessSpliting_RunWorkerCompleted

 private void bckWrkrProcessSpliting_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (e.get_Result() == null)
     {
         this.BtnApply.set_Image(Resources.APPLY2);
         Messages.ShowMessage("Разделение жилья произведено!");
         base.set_DialogResult(System.Windows.Forms.DialogResult.OK);
         base.Close();
     }
     else
     {
         this.BtnApply.set_Text("Готово");
         this.BtnApply.set_Image(Resources.APPLY2);
         Messages.ShowException(this, e.get_Result() as System.Exception);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:16,代码来源:SplitApartmentForm.cs

示例10: m_SearchWorker_RunWorkerCompleted

 private void m_SearchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnSearch.set_Image(null);
     if (e.Error != null)
     {
         BalloonWindow.Show(this.btnSearch, e.Error.get_Message());
     }
     else
     {
         this.acApTree.Refresh((ObjectList<Apartment>) e.get_Result());
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:12,代码来源:CountersSearchControl.cs

示例11: m_SearchWorker_RunWorkerCompleted

 private void m_SearchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnSearch.set_Image(null);
     if (e.Error != null)
     {
         BalloonWindow.Show(this.btnSearch, e.Error.get_Message());
     }
     else
     {
         ObjectList<Account> list = (ObjectList<Account>) e.get_Result();
         this.treeAccount.Refresh(list);
         if (((list != null) && (list.get_Count() == 1)) && (this.AccountSelected != null))
         {
             this.AccountSelected();
         }
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:17,代码来源:AccountSelectControl.cs

示例12: m_FileLoadWorker_RunWorkerCompleted

 private void m_FileLoadWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.m_LoadButton.set_Image(null);
     System.Exception error = e.Error;
     if (error != null)
     {
         System.ApplicationException ex = new System.ApplicationException("Реестр не был загружен.", error);
         Messages.ShowException(this, ex);
     }
     else
     {
         this.LoadedReester = (PayReester) e.get_Result();
         base.set_DialogResult(System.Windows.Forms.DialogResult.Yes);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:15,代码来源:LoadPayReestersForm.cs

示例13: notifyWorker_RunWorkerCompleted

 private void notifyWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     System.Exception error = e.Error;
     if (error != null)
     {
         throw new System.ApplicationException("Не удалось получить информацио о запросах из внешних систем с сервера", error);
     }
     int num = (int) ((int) e.get_Result());
     if (num != 0)
     {
         this.notifyIcon.set_BalloonTipText(string.Format("В очереди на печать осталось {0} извещений", (int) num));
         this.notifyIcon.ShowBalloonTip(0x1b58);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:14,代码来源:ChiefMainForm.cs

示例14: m_SearchWorker_RunWorkerCompleted

 private void m_SearchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.btnSearch.set_Image(null);
     if (e.Error != null)
     {
         BalloonWindow.Show(this.btnSearch, e.Error.get_Message());
     }
     else
     {
         this.SearchResults = (ObjectList<AccountOther>) e.get_Result();
         System.EventHandler searchCompleted = this.SearchCompleted;
         if (searchCompleted != null)
         {
             searchCompleted(this, System.EventArgs.Empty);
         }
         if (((this.m_IsSearchByBarcode && (this.SearchResults != null)) && (this.SearchResults.get_Count() != 0)) && (Settings.Default.CashierCashFlowType == 0))
         {
             Messages.ShowError("Необходимо выбрать режим работы кассы в настройках программы!");
         }
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:21,代码来源:AccountSearchControlOtherPayment.cs

示例15: m_StartMinimizationPenalty_RunWorkerCompleted

 private void m_StartMinimizationPenalty_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     this.pbRunStatus.set_Visible(false);
     this.lbRunStatus.set_Text("Минимизация выполнена");
     if (this.m_GroupOperation.IsNullId(this.m_GroupOperation.Id))
     {
         Messages.ShowMessage("На данном лицевом нет услуг, которым необходима минимизация пеней");
         base.Close();
     }
     else
     {
         this.dgvResult.set_DataSource(e.get_Result() as System.Data.DataTable);
         this.dgvResult.Columns.get_Item("fromDate").set_HeaderText("Дата начала");
         this.dgvResult.Columns.get_Item("toDate").set_HeaderText("Дата окончания");
         this.dgvResult.Columns.get_Item("serviceCode").set_HeaderText("Код услуги");
         this.dgvResult.Columns.get_Item("serviceName").set_HeaderText("Услуга");
         this.dgvResult.Columns.get_Item("providerName").set_HeaderText("Поставщик");
         this.dgvResult.Columns.get_Item("beforeBalance").set_HeaderText("Баланс до");
         this.dgvResult.Columns.get_Item("beforePenalty").set_HeaderText("Пени до");
         this.dgvResult.Columns.get_Item("deltaBalance").set_HeaderText("Сумма переноса");
         this.dgvResult.Columns.get_Item("afterBalance").set_HeaderText("Баланс после");
         this.dgvResult.Columns.get_Item("afterPenalty").set_HeaderText("Пени после");
         this.dgvResult.Columns.get_Item("comment").set_HeaderText("Комментарий");
         this.dgvResult.Columns.get_Item("comment").set_Visible(false);
         this.PaintRows();
         this.btnRollBack.set_Enabled(true);
         this.btnClose.set_Enabled(true);
     }
 }
开发者ID:u4097,项目名称:SQLScript,代码行数:29,代码来源:PenaltyMinimizationForm.cs


注:本文中的System.ComponentModel.RunWorkerCompletedEventArgs.get_Result方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。