private void btnDelete_Click(object sender, EventArgs e)
 {
     BankTransactionsList trans = new BankTransactionsList();
     foreach (DataGridViewRow row in TransHistoryGrid.SelectedRows)
     {
         trans.Add((BankTransaction)row.DataBoundItem);
     }
     BankAccounts.DeleteTransactions(trans);
     RecalcAllInterest();
     DisplayData();
 }
 public static BankTransactionsList GetAccountTransactions(int accountID)
 {
     BankTransactionsList retVal = new BankTransactionsList();
     EMMADataSet.BankTransactionDataTable table = new EMMADataSet.BankTransactionDataTable();
     bankTransactionTableAdapter.FillByAny(table, accountID, 0, false);
     foreach (EMMADataSet.BankTransactionRow trans in table)
     {
         retVal.Add(new BankTransaction(trans));
     }
     return retVal;
 }