Beispiel #1
0
 /// <summary>
 /// Szamla felvitele 1. szint - konstruktorok csomagolasa + egyenleg beallitas - Account
 /// </summary>
 public void addAccount(string ownerName, string accountNumber, double balance)
 {
     // 0. szintet hiv
     Account account = new Account(ownerName, accountNumber);
     account.Balance = balance;
     this.addAccount(account);
 }
Beispiel #2
0
 public Event( Account account, DateTime date )
 {
     this.account = account;
     this.date = date;
     this.order = Event.SEQ_ORDER;
     Event.SEQ_ORDER++;
 }
Beispiel #3
0
 public TransferEvent(Account target, double value, Account account, DateTime date)
     : base(account,date)
 {
     this.target = target;
     this.value = value;
 }
 public AdministrationEvent(string message, Account account, DateTime date)
     : base(account,date)
 {
     this.message = message;
 }
Beispiel #5
0
 /// <summary>
 /// Esemeny felvitele 1. szint - leszarmazott konstruktorok csomagolasa - TransferEvent (mindenkeppen private)
 /// </summary>
 private void addEvent(Account target, double value, Account account, DateTime date)
 {
     // 0. szintet hiv
     this.addEvent(new TransferEvent(target, value, account, date));
 }
Beispiel #6
0
 /// <summary>
 /// Esemeny felvitele 1. szint - leszarmazott konstruktorok csomagolasa - AdministrationEvent (mindenkeppen private)
 /// </summary>
 private void addEvent(string message, Account account, DateTime date)
 {
     // 0. szintet hiv
     this.addEvent(new AdministrationEvent(message,account,date));
 }
Beispiel #7
0
 /// <summary>
 /// Szamla felvitele 0. szint (mindenkeppen private)
 /// </summary>
 private void addAccount(Account account)
 {
     if (this.actAccount < AccountTrunk.MAX_ACCOUNT)
     {
         this.accounts[this.actAccount++] = account;
     }
 }