void bingtree_BindOrgTreeCompleted(object sender, EventArgs e) { BingdOrgTreeArg arg = e as BingdOrgTreeArg; loadbar.Stop(); }
public void InitPara() { try { PARENT.Children.Add(loadbar); loadbar.Stop(); //DtGrid.CurrentCellChanged += new EventHandler<EventArgs>(DtGrid_CurrentCellChanged); client = new SMT.Saas.Tools.PersonnelWS.PersonnelServiceClient(); //client.GetEmployeePagingCompleted += new EventHandler<GetEmployeePagingCompletedEventArgs>(client_GetEmployeePagingCompleted); client.EmployeeDeleteCompleted += new EventHandler <EmployeeDeleteCompletedEventArgs>(client_EmployeeDeleteCompleted); //client.GetEmployeeViewsPagingCompleted += new EventHandler<GetEmployeeViewsPagingCompletedEventArgs>(client_GetEmployeeViewsPagingCompleted); client.GetEmployeeBasicInfoPagingViewCompleted += new EventHandler <GetEmployeeBasicInfoPagingViewCompletedEventArgs>(client_GetEmployeeBasicInfoPagingViewCompleted); client.ExportEmployeeCompleted += new EventHandler <ExportEmployeeCompletedEventArgs>(client_ExportEmployeeCompleted); client.GetLeaveEmployeeViewsPagingCompleted += new EventHandler <GetLeaveEmployeeViewsPagingCompletedEventArgs>(client_GetLeaveEmployeeViewsPagingCompleted); // orgClient = new SMT.Saas.Tools.OrganizationWS.OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); this.Loaded += new RoutedEventHandler(Employee_Loaded); this.ToolBar.btnNew.Click += new RoutedEventHandler(btnAdd_Click); this.ToolBar.btnEdit.Click += new RoutedEventHandler(BtnAlter_Click); this.ToolBar.btnDelete.Click += new RoutedEventHandler(btnDel_Click); this.ToolBar.btnRefresh.Click += new RoutedEventHandler(btnRefresh_Click); this.ToolBar.BtnView.Click += new RoutedEventHandler(BtnView_Click); this.ToolBar.retNew.Visibility = Visibility.Collapsed; this.ToolBar.btnNew.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.Visibility = Visibility.Collapsed; this.ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed; this.ToolBar.btnDelete.Visibility = Visibility.Collapsed; this.ToolBar.btnAudit.Visibility = Visibility.Collapsed; this.ToolBar.retAudit.Visibility = Visibility.Collapsed; ImageButton _ImgButtonViewInTime = new ImageButton(); _ImgButtonViewInTime.VerticalAlignment = VerticalAlignment.Center; _ImgButtonViewInTime.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1055.png", Utility.GetResourceStr("员工即时信息")).Click += new RoutedEventHandler(_ImgButtonViewInTime_Click); ToolBar.stpOtherAction.Children.Add(_ImgButtonViewInTime); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); ImageButton _ImgButtonViewBasicInfo = new ImageButton(); _ImgButtonViewBasicInfo.VerticalAlignment = VerticalAlignment.Center; _ImgButtonViewBasicInfo.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1055.png", Utility.GetResourceStr("报表信息")).Click += new RoutedEventHandler(_ImgButtonViewBasicInfo_Click); ToolBar.stpOtherAction.Children.Add(_ImgButtonViewBasicInfo); ImageButton _ImgButtonEmployeeTotal = new ImageButton(); _ImgButtonEmployeeTotal.VerticalAlignment = VerticalAlignment.Center; _ImgButtonEmployeeTotal.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1055.png", Utility.GetResourceStr("统计报表")).Click += new RoutedEventHandler(_ImgButtonEmployeeTotal_Click); ToolBar.stpOtherAction.Children.Add(_ImgButtonEmployeeTotal); ImageButton _ImgButtonEmployeeStruct = new ImageButton(); _ImgButtonEmployeeStruct.VerticalAlignment = VerticalAlignment.Center; _ImgButtonEmployeeStruct.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1055.png", Utility.GetResourceStr("结构报表")).Click += new RoutedEventHandler(_ImgButtonEmployeeStruct_Click); ToolBar.stpOtherAction.Children.Add(_ImgButtonEmployeeStruct); ImageButton _ImgButtonReport = new ImageButton(); _ImgButtonReport.VerticalAlignment = VerticalAlignment.Center; _ImgButtonReport.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1055.png", Utility.GetResourceStr("薪酬保险缴交报表")).Click += new RoutedEventHandler(_ImgButtonReports_Click); ToolBar.stpOtherAction.Children.Add(_ImgButtonReport); ToolBar.btnOutExcel.Visibility = Visibility.Visible; ToolBar.btnOutExcel.Click += new RoutedEventHandler(btnOutExcel_Click); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); } catch (Exception) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
public PaySalaryHistory() { InitializeComponent(); InitParas(); GetEntityLogo("T_HR_EMPLOYEESALARYRECORD"); EditTitle("SALARY", "薪资发放查询"); //LoadFristData(); //LoadSalaryRecordData(); loadbar.Stop(); hisSign = true; }
/// <summary> /// 绑定事件 /// </summary> private void InitParas() { //初始化控件的状态 PARENT.Children.Add(loadbar); loadbar.Stop(); client.GetALLCompanyViewCompleted += new EventHandler <GetALLCompanyViewCompletedEventArgs>(client_GetALLCompanyViewCompleted); client.GetAllDepartmentViewCompleted += new EventHandler <GetAllDepartmentViewCompletedEventArgs>(client_GetAllDepartmentViewCompleted); client.GetAllPostViewCompleted += new EventHandler <GetAllPostViewCompletedEventArgs>(client_GetAllPostViewCompleted); BindTree(); }
/// <summary> /// 构造页面触发事件 /// </summary> public void InitPara() { try { // 1s 冉龙军 PARENT.Children.Add(loadbar); loadbar.Stop(); // 1e client = new PersonnelServiceClient(); kpiClient = new PerformanceServiceClient(); kpiClient.GetKPIRecordPagingCompleted += new EventHandler <GetKPIRecordPagingCompletedEventArgs>(client_GetKPIRecordPagingCompleted); //orgClient = new OrganizationServiceClient(); //orgClient.GetCompanyActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetCompanyActivedCompletedEventArgs>(orgClient_GetCompanyActivedCompleted); //orgClient.GetDepartmentActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetDepartmentActivedCompletedEventArgs>(orgClient_GetDepartmentActivedCompleted); //orgClient.GetPostActivedCompleted += new EventHandler<SMT.Saas.Tools.OrganizationWS.GetPostActivedCompletedEventArgs>(orgClient_GetPostActivedCompleted); DtGrid.CurrentCellChanged += new EventHandler <EventArgs>(DtGrid_CurrentCellChanged); this.Loaded += new RoutedEventHandler(Employee_Loaded); this.Loaded += new RoutedEventHandler(AuditState_Loaded); treeOrganization.SelectedClick += new EventHandler(treeOrganization_SelectedClick); //this.ToolBar.btnNew.Click += new RoutedEventHandler(btnAdd_Click); this.ToolBar.btnNew.Visibility = Visibility.Collapsed; this.ToolBar.btnEdit.Visibility = Visibility.Collapsed; this.ToolBar.btnDelete.Visibility = Visibility.Collapsed; this.ToolBar.btnRefresh.Visibility = Visibility.Collapsed; this.ToolBar.BtnView.Visibility = Visibility.Collapsed; // 1s 冉龙军 this.ToolBar.btnAudit.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.Visibility = Visibility.Collapsed; this.ToolBar.cbxCheckState.SelectionChanged += new SelectionChangedEventHandler(cbxCheckState_SelectionChanged); this.ToolBar.retNew.Visibility = Visibility.Collapsed; this.ToolBar.retEdit.Visibility = Visibility.Collapsed; this.ToolBar.retDelete.Visibility = Visibility.Collapsed; this.ToolBar.retRefresh.Visibility = Visibility.Collapsed; this.ToolBar.retAudit.Visibility = Visibility.Collapsed; this.ToolBar.retAuditNoPass.Visibility = Visibility.Collapsed; this.ToolBar.txtCheckStateName.Visibility = Visibility.Collapsed; // 1e ImageButton btnComplain = new ImageButton(); btnComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_4405_d.png", Utility.GetResourceStr("COMPLAIN")).Click += new RoutedEventHandler(btnComplain_Click); ImageButton btnEditComplain = new ImageButton(); btnEditComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("EDIT")).Click += new RoutedEventHandler(btnEditComplain_Click); ImageButton btnViewComplain = new ImageButton(); btnViewComplain.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/18_service.png", Utility.GetResourceStr("VIEWCOMPLAIN")).Click += new RoutedEventHandler(btnViewComplain_Click); ImageButton btnViewReview = new ImageButton(); btnViewReview.AddButtonAction("/SMT.SaaS.FrameworkUI;Component/Images/Tool/ico_16_1036.png", Utility.GetResourceStr("VIEWREVIEW")).Click += new RoutedEventHandler(btnReview_Click); this.ToolBar.stpOtherAction.Children.Add(btnComplain); // 1s 冉龙军 //this.ToolBar.stpOtherAction.Children.Add(btnEditComplain); //修改 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewComplain); // 1s 冉龙军 this.ToolBar.stpOtherAction.Children.Add(ToolBar.AddPartition()); // 1e // this.ToolBar.stpOtherAction.Children.Add(btnViewReview); } catch (Exception ex) { //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } }
/// <summary> /// 当前页加载完毕后执行的操作 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void AcountsView_Loaded(object sender, RoutedEventArgs e) { loadbar.Stop(); // BindData(); }
//private SmtOACommonOfficeClient SendDocClient = new SmtOACommonOfficeClient(); void SendDocClient_GetSendDocSingleInfoByIdCompleted(object sender, GetSendDocSingleInfoByIdCompletedEventArgs e) { loadbar.Stop(); //RefreshUI(RefreshedTypes.HideProgressBar);//停止进度圈 if (!e.Cancelled) { if (e.Error == null) { if (e.Result != null) { senddoc = e.Result; publicClient.GetContentAsync(senddoc.SENDDOCID); this.tbltitle.Text = string.IsNullOrEmpty(senddoc.SENDDOCTITLE) ? "":senddoc.SENDDOCTITLE; this.tblsend.Text = string.IsNullOrEmpty(senddoc.SEND) ? "":senddoc.SEND; this.tblcopy.Text = string.IsNullOrEmpty(senddoc.CC) ? "":senddoc.CC; //tblcontent.Document = senddoc.CONTENT; //this.tbldepartment.Text = senddoc.DEPARTID; SelectDocType = senddoc.T_OA_SENDDOCTYPE; if (SelectDocType != null) { this.tbldoctype.Text = SelectDocType.SENDDOCTYPE; } this.tblprioritity.Text = string.IsNullOrEmpty(senddoc.PRIORITIES) ? "":senddoc.PRIORITIES; this.tblgrade.Text = string.IsNullOrEmpty(senddoc.GRADED) ? "":senddoc.GRADED; tblKeyWord.Text = string.IsNullOrEmpty(senddoc.KEYWORDS) ? "":senddoc.KEYWORDS; if (string.IsNullOrEmpty(DocNum)) { this.tblnum.Text = senddoc.NUM; } else { this.tblnum.Text = DocNum; } this.tblcontenttitle.Text = senddoc.SENDDOCTITLE; GetDepartmentName(senddoc.DEPARTID); string StrState = ""; string StrSave = ""; tmpStrcbxGrade = senddoc.GRADED; tmpStrcbxProritity = senddoc.PRIORITIES; //if (!ctrFile._files.HasAccessory) //{ // SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 16); //} if (senddoc.ISREDDOC == "0") { SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 6); SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 7); SMT.SaaS.FrameworkUI.Common.Utility.HiddenGridRow(this.GridInfo, 8); } if (senddoc.CREATEDATE != null) { //tbladddate.Text = System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToShortDateString() + " " + System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToShortTimeString(); tbladddate.Text = System.Convert.ToDateTime(senddoc.CREATEDATE).ToShortDateString() + " " + System.Convert.ToDateTime(senddoc.CREATEDATE).ToShortTimeString(); } if (string.IsNullOrEmpty(DocPublishDate)) { this.tblPublishDate.Text = DocPublishDate; } else { if (senddoc.PUBLISHDATE != null) { this.tblPublishDate.Text = System.Convert.ToDateTime(senddoc.PUBLISHDATE).ToLongDateString() + "印发"; //StrPublish = dt.ToString("yyyymmdd"); } } if (senddoc.ISDISTRIBUTE == "1") { this.tblStatus.Text = "已发布"; } else { this.tblStatus.Text = "未发布"; } if (!string.IsNullOrEmpty(senddoc.OWNERNAME)) { tbladduser.Text = senddoc.OWNERNAME; } //ctrFile.IsEnabled = false; } } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.ToString()); return; } } }
void InitWCF() { client.InitMessageCompleted += (e, args) => { if (args.Error == null) { if (args.Result == "1") { this.btnInit.Visibility = Visibility.Collapsed; SearchDefaultList(); } else { ComfirmWindow.ConfirmationBox("提示信息", "数据初始化错误" + args.Result, "确定"); } } }; client.GetMessageCompleted += (e, args) => { if (args.Error == null) { if (count == 0 && args.Result.Count < 1) { this.btnInit.Visibility = Visibility.Visible; } count++; dgDefaultMessage.ItemsSource = args.Result; dataPager1.PageCount = args.pageCount; loadbar.Stop(); } else { ComfirmWindow.ConfirmationBox("提示信息", "数据查询出错", "确定"); } }; clientXml.ListSystemCompleted += (e, args) => { if (args.Result != null) { appSystem = args.Result; foreach (var item in appSystem) { xmlurl.Add(item.ObjectFolder); } clientXml.ListModelAsync(xmlurl); appSystem.Insert(0, new AppSystem() { Name = "0", Description = "请选择......" }); cbSystemCode.ItemsSource = appSystem; cbSystemCode.SelectedIndex = 0; } }; clientXml.ListModelCompleted += (e, args) => { if (args.Result != null) { appModel = args.Result; appModel.Insert(0, new AppModel() { Name = "0", Description = "请选择......" }); cbModelCode.ItemsSource = appModel; cbModelCode.SelectedIndex = 0; loadbar.Stop(); } }; client.DeleteMessageCompleted += (e, args) => { if (args.Error == null) { if (args.Result == "1") { ComfirmWindow.ConfirmationBox("提示信息", "删除成功!", "确定"); SearchDefaultList(); } else { ComfirmWindow.ConfirmationBox("提示信息", "删除失败!", "确定"); } } }; }
/// <summary> /// 获取数据 /// </summary> /// <param name="userID"></param> /// <param name="selDateTime"></param> private void GetData() { int pageCount = 0; string filter = ""; //查询过滤条件 string StrStart = this.dpStart.Text.Trim().ToString(); string StrEnd = this.dpEnd.Text.Trim().ToString(); ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (!string.IsNullOrEmpty(txtTitle.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "@" + paras.Count().ToString() + ".Contains(APPROVALTITLE) "; paras.Add(txtTitle.Text.Trim()); } if (!string.IsNullOrEmpty(txtCode.Text.Trim())) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "@" + paras.Count().ToString() + ".Contains(APPROVALCODE) "; paras.Add(txtCode.Text.Trim()); } if (!string.IsNullOrEmpty(StrApprovaltype)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += " typeapproval=@" + paras.Count().ToString(); paras.Add(StrApprovaltype); } if (SearchUserID == Common.CurrentLoginUserInfo.EmployeeID) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "( OWNERID =@" + paras.Count().ToString(); paras.Add(SearchUserID); //员工ID值 filter += " or "; filter += "CREATEUSERID =@" + paras.Count().ToString(); //添加人的ID paras.Add(SearchUserID); filter += " ) "; } else { if (!string.IsNullOrEmpty(SearchUserID)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OWNERID =@" + paras.Count().ToString(); paras.Add(SearchUserID); } } if (!string.IsNullOrEmpty(SearchCompanyID)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OWNERCOMPANYID =@" + paras.Count().ToString(); paras.Add(SearchCompanyID); } DateTime DtStart = new DateTime(); DateTime DtEnd = new DateTime(); if (!string.IsNullOrEmpty(StrStart) && string.IsNullOrEmpty(StrEnd)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("dtSearch"), Utility.GetResourceStr("ENDTIMENOTNULL")); return; } if (string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("dtSearch"), Utility.GetResourceStr("STARTTIMENOTNULL")); return; } if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { DtStart = System.Convert.ToDateTime(StrStart); DtEnd = System.Convert.ToDateTime(StrEnd + " 23:59:59"); if (DtStart > DtEnd) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("dtSearch"), Utility.GetResourceStr("STARTTIMENOTGREATENDTIME")); return; } else { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "CREATEDATE >=@" + paras.Count().ToString(); paras.Add(DtStart); if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "CREATEDATE <=@" + paras.Count().ToString(); paras.Add(DtEnd); } } try { loadbar.Start(); SMT.SaaS.OA.UI.SmtOAPersonOfficeService.LoginUserInfo loginUserInfo = new SMT.SaaS.OA.UI.SmtOAPersonOfficeService.LoginUserInfo(); loginUserInfo.companyID = Common.CurrentLoginUserInfo.UserPosts[0].CompanyID; loginUserInfo.userID = Common.CurrentLoginUserInfo.EmployeeID; approvalManagement.GetApporvalListAsync(dataPager.PageIndex, dataPager.PageSize, "CREATEDATE descending", filter, paras, pageCount, checkState, loginUserInfo); } catch (Exception ex) { loadbar.Stop(); } }
void LoadMeetingInfos() { bool IsStart = false;//记录圈圈是否驱动 try { string StrTitle = ""; string StrContent = ""; string StrStart = ""; string StrEnd = ""; int pageCount = 0; string filter = ""; //查询过滤条件 ObservableCollection <object> paras = new System.Collections.ObjectModel.ObservableCollection <object>(); //参数值 if (IsQueryBtn) { StrTitle = txtMeetingTitle.Text.Trim().ToString(); if (!string.IsNullOrEmpty(StrTitle)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OAMeetingInfoT.MEETINGTITLE ^@" + paras.Count().ToString(); paras.Add(StrTitle); } StrStart = dpStart.Text.ToString(); StrEnd = dpEnd.Text.ToString(); DateTime DtStart = new DateTime(); DateTime DtEnd = new DateTime(); if (!string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { DtStart = System.Convert.ToDateTime(StrStart); DtEnd = System.Convert.ToDateTime(StrEnd + " 23:59:59"); if (DtStart > DtEnd) { Utility.ShowCustomMessage(MessageTypes.Caution, Utility.GetResourceStr("SEARCH"), Utility.GetResourceStr("STARTTIMENOTGREATENDTIME")); return; } else { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OAMeetingInfoT.CREATEDATE >=@" + paras.Count().ToString(); paras.Add(DtStart); if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OAMeetingInfoT.CREATEDATE <=@" + paras.Count().ToString(); paras.Add(DtEnd); } } else { //开始时间不为空 结束时间为空 if (!string.IsNullOrEmpty(StrStart) && string.IsNullOrEmpty(StrEnd)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OAMeetingInfoT.CREATEDATE >=@" + paras.Count().ToString(); paras.Add(DtStart); } //结束时间不为空 if (string.IsNullOrEmpty(StrStart) && !string.IsNullOrEmpty(StrEnd)) { if (!string.IsNullOrEmpty(filter)) { filter += " and "; } filter += "OAMeetingInfoT.CREATEDATE <=@" + paras.Count().ToString(); paras.Add(DtEnd); } } } loadbar.Start(); IsStart = true; MeetingClient.GetMyMeetingInfosManagementAsync(dataPager.PageIndex, dataPager.PageSize, "OAMeetingInfoT.CREATEDATE descending", filter, paras, pageCount, Common.CurrentLoginUserInfo.EmployeeID); } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString()); if (IsStart) { loadbar.Stop(); } return; } }