Beispiel #1
0
 public void ShowTransactions()
 {
     allTransactions = SQLMethods.GetTransactions(UserId);
     foreach (Transaction tr in allTransactions)
     {
         Console.WriteLine("Transakcja numer: " + tr.number().ToString());
         Console.WriteLine("Kwota transakcji: " + String.Format("{0:N2}", tr.amount()) + " zł");
         Console.WriteLine("Data transakcji: " + tr.date());
         Console.WriteLine("Opis transakcji: " + tr.notes());
     }
     Console.ReadKey();
 }
Beispiel #2
0
 public BankAccount(string name, int userId)
 {
     Owner           = name;
     UserId          = userId;
     allTransactions = SQLMethods.GetTransactions(UserId);
 }