ReadTransactions() public abstract method

public abstract ReadTransactions ( ) : void
return void
示例#1
0
        // カードを読み込む
        // 正常に読み込んだら 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);
        }
示例#2
0
        // カードを読み込む
        // 正常に読み込んだら 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;
        }