Пример #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);
 }
Пример #2
0
 public Event( Account account, DateTime date )
 {
     this.account = account;
     this.date = date;
     this.order = Event.SEQ_ORDER;
     Event.SEQ_ORDER++;
 }
Пример #3
0
 public TransferEvent(Account target, double value, Account account, DateTime date)
     : base(account,date)
 {
     this.target = target;
     this.value = value;
 }
Пример #4
0
 public AdministrationEvent(string message, Account account, DateTime date)
     : base(account,date)
 {
     this.message = message;
 }
Пример #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));
 }
Пример #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));
 }
Пример #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;
     }
 }