// カードを読み込む // 正常に読み込んだら true を返す private bool readTransactions(Account c) { try { c.ReadTransactions(); } catch (Exception ex) { MessageBox.Show(ex.Message, Properties.Resources.Error); return(false); } if (c.transactions == null) { MessageBox.Show(Properties.Resources.CardReadError, Properties.Resources.Error); return(false); } // 無効な取引を削除する c.transactions.removeInvalidTransactions(); // 0円の取引を削除する if (Properties.Settings.Default.IgnoreZeroTransaction) { c.transactions.removeZeroTransactions(); } return(true); }
// カードを読み込む // 正常に読み込んだら true を返す private bool readTransactions(Account c) { try { c.ReadTransactions(); } catch (Exception ex) { MessageBox.Show(ex.Message, Properties.Resources.Error); return false; } if (c.transactions == null) { MessageBox.Show(Properties.Resources.CardReadError, Properties.Resources.Error); return false; } // 無効な取引を削除する c.transactions.removeInvalidTransactions(); // 0円の取引を削除する if (Properties.Settings.Default.IgnoreZeroTransaction) { c.transactions.removeZeroTransactions(); } return true; }