예제 #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
파일: Event.cs 프로젝트: davidbedok/oeprog2
 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;
     }
 }