void CustomerServiceClient_GetCustomerCompleted(object sender, GetCustomerCompletedEventArgs e) { _customer = e.Result.Customer; this.RaisePropertyChanged(cust=> cust.Customer); //InvokePropertyChanged(new PropertyChangedEventArgs("Customer")); DataLoaded = true; }
void CustomerServiceClient_GetCustomerCompleted(object sender, GetCustomerCompletedEventArgs e) { _customer = e.Result.Customer; this.RaisePropertyChanged(cust => cust.Customer); //InvokePropertyChanged(new PropertyChangedEventArgs("Customer")); DataLoaded = true; }
private void GetCustomerCompleted(object sender, GetCustomerCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if (GetCustomerComplete != null) { GetCustomerComplete(e); } }
private void GetCustomerCompleted(object sender, GetCustomerCompletedEventArgs e) { Customer customer = e.Result; MessageBox.Show(customer.GetFullName()); }
private void GetCustomerCompleted(Object sender, GetCustomerCompletedEventArgs e) { try { objCustomer = e.Result; if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } if (objCustomer != null) { if (objCustomer.message != "" && objCustomer.message != null) { // 失敗 ExMessageBox.Show(objCustomer.message); objPerent.DataSelect((int)geWebServiceCallKbn.GetCustomer, (object)objCustomer); } else { // 成功 objPerent.DataSelect((int)geWebServiceCallKbn.GetCustomer, (object)objCustomer); } } else { objPerent.DataSelect((int)geWebServiceCallKbn.GetCustomer, null); } } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetCustomerCompleted" + Environment.NewLine + ex.ToString(), "エラー確認"); } finally { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } } }
private void GetCustomerCompleted(Object sender, GetCustomerCompletedEventArgs e) { try { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } objMstName = e.Result; if (objMstName != null) { if (objMstName.message != "" && objMstName.message != null) { // 認証失敗 ExMessageBox.Show(objMstName.message); objPerent.MstDataSelect(WebServiceMstNmCallKbn, null); } else { // 認証成功 objPerent.MstDataSelect(WebServiceMstNmCallKbn, objMstName); } } else { objPerent.MstDataSelect(WebServiceMstNmCallKbn, null); } } catch (Exception ex) { Common.gblnDesynchronizeLock = false; ExMessageBox.Show(CLASS_NM + ".GetCustomerCompleted" + Environment.NewLine + ex.ToString(), "エラー確認"); } finally { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } } }
private void GetCustomerCompleted(object sender, GetCustomerCompletedEventArgs e) { if (IsUnauthorised(e.Error)) { SessionExpired(); } else if(GetCustomerComplete != null){ GetCustomerComplete(e); } }