Exemplo n.º 1
0
        public ArrayList GetTransactions()
        {
            ArrayList tranArrayList = new ArrayList();
            var       transactions  = transactionAccess.GetTransactions();

            transactions.ForEach(transaction => { tranArrayList.Add(transaction); });
            return(tranArrayList);
        }
        public List <TransactionDetailStruct> GetAllTransactions()
        {
            List <uint> transactionIDs            = access.GetTransactions();
            List <TransactionDetailStruct> result = new List <TransactionDetailStruct>();

            foreach (uint ID in transactionIDs)
            {
                TransactionDetailStruct entry = new TransactionDetailStruct();

                access.SelectTransaction(ID);
                entry.transactionID = ID;
                entry.senderID      = access.GetSendrAcct();
                entry.receiverID    = access.GetRecvrAcct();
                entry.amount        = access.GetAmount();
                result.Add(entry);
            }
            return(result);
        }
 public List <uint> GetTransactions()
 {
     return(transactionAccess.GetTransactions());
 }