public void addTransaction(Transaction input) { TransactionControl tmp = new TransactionControl(input.value, input.note); tmp.Dock = DockStyle.Top; transactionHistoryPanel.Controls.Add(tmp); tmp.refreshViews(); }
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(); } }