/// <summary> /// Refreshes the bank accounts status. /// </summary> private void RefreshBankAccountsStatus() { try { var client = new BankingModuleServiceClient(); client.FindBankAccountActivitiesCompleted += delegate(object sender, FindBankAccountActivitiesCompletedEventArgs e) { if (e.Error == null) { BankActivities = e.Result; } else if (e.Error is FaultException <ServiceError> ) { var fault = e.Error as FaultException <ServiceError>; MessageBox.Show(fault.Detail.ErrorMessage, "Error", MessageBoxButton.OK); } else { Debug.WriteLine("RefreshBankAccountsStatus: Error at Service:" + e.Error.ToString()); } }; client.FindBankAccountActivitiesAsync(BankAccountSource.Id); } catch (FaultException <ServiceError> excep) { Debug.WriteLine("RefreshBankAccountsStatus: Error at Service:" + excep.ToString()); } }
/// <summary> /// Refreshes the bank accounts status. /// </summary> private void RefreshBankAccountsStatus() { try { var client = new BankingModuleServiceClient(); client.FindBankAccountActivitiesCompleted += delegate(object sender, FindBankAccountActivitiesCompletedEventArgs e) { if (e.Error == null) { BankActivities = e.Result; } else if (e.Error is FaultException<ServiceError>) { var fault = e.Error as FaultException<ServiceError>; MessageBox.Show(fault.Detail.ErrorMessage, "Error", MessageBoxButton.OK); } else { Debug.WriteLine("RefreshBankAccountsStatus: Error at Service:" + e.Error.ToString()); } }; client.FindBankAccountActivitiesAsync(BankAccountSource.Id); } catch (FaultException<ServiceError> excep) { Debug.WriteLine("RefreshBankAccountsStatus: Error at Service:" + excep.ToString()); } }