示例#1
0
        public void addTransaction(Transaction input)
        {
            TransactionControl tmp = new TransactionControl(input.value, input.note);

            tmp.Dock = DockStyle.Top;
            transactionHistoryPanel.Controls.Add(tmp);
            tmp.refreshViews();
        }
示例#2
0
 public void addTransactions(List <Transaction> transactionValues)
 {
     foreach (Transaction t in transactionValues)
     {
         TransactionControl tmp = new TransactionControl(t.value, t.note);
         tmp.Dock = DockStyle.Top;
         transactionHistoryPanel.Controls.Add(tmp);
         tmp.refreshViews();
     }
 }