private void GetPaymentBalanceListCompleted(Object sender, GetPaymentBalanceListCompletedEventArgs e) { try { objPaymentBalanceList = e.Result; if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } if (objPaymentBalanceList != null) { if (objPaymentBalanceList.Count == 0) { objPerent.DataSelect((int)geWebServiceCallKbn.GetPaymentBalanceList, null); return; } if (objPaymentBalanceList[0].message != null) { if (objPaymentBalanceList[0].message != "") { // 認証失敗 ExMessageBox.Show(objPaymentBalanceList[0].message); objPerent.DataSelect((int)geWebServiceCallKbn.GetPaymentBalanceList, null); } else { // 認証成功 objPerent.DataSelect((int)geWebServiceCallKbn.GetPaymentBalanceList, (object)objPaymentBalanceList); } } else { // 認証成功 objPerent.DataSelect((int)geWebServiceCallKbn.GetPaymentBalanceList, (object)objPaymentBalanceList); } } else { objPerent.DataSelect((int)geWebServiceCallKbn.GetPaymentBalanceList, null); } } catch (Exception ex) { this.ProcessingDlgClose(); ExMessageBox.Show(CLASS_NM + ".GetPaymentBalanceListCompleted" + Environment.NewLine + ex.ToString(), "エラー確認"); } finally { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } } }
private void GetPaymentBalanceListCompleted(Object sender, GetPaymentBalanceListCompletedEventArgs e) { try { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } objMstList = e.Result; if (objMstList == null) { objPerent.DataSelect((int)geWebServiceMstNmCallKbn.GetPaymentBalanceList, null); return; } if (objMstList.Count == 0) { objPerent.DataSelect((int)geWebServiceMstNmCallKbn.GetPaymentBalanceList, null); return; } if (objMstList[0].message == null) { // 認証成功 objPerent.DataSelect((int)geWebServiceMstNmCallKbn.GetPaymentBalanceList, objMstList); return; } if (objMstList[0].message == "") { // 認証成功 objPerent.DataSelect((int)geWebServiceMstNmCallKbn.GetPaymentBalanceList, objMstList); return; } else { // 認証失敗 ExMessageBox.Show(objMstList[0].message); objPerent.DataSelect((int)geWebServiceMstNmCallKbn.GetPaymentBalanceList, null); } } catch (Exception ex) { Common.gblnDesynchronizeLock = false; ExMessageBox.Show(CLASS_NM + ".GetPaymentBalanceListCompleted" + Environment.NewLine + ex.ToString(), "エラー確認"); } finally { if (DialogCloseFlg == geDialogCloseFlg.Yes & win != null) { win.Close(); win = null; } } }