/// <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); }
public Event( Account account, DateTime date ) { this.account = account; this.date = date; this.order = Event.SEQ_ORDER; Event.SEQ_ORDER++; }
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; }
/// <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)); }
/// <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)); }
/// <summary> /// Szamla felvitele 0. szint (mindenkeppen private) /// </summary> private void addAccount(Account account) { if (this.actAccount < AccountTrunk.MAX_ACCOUNT) { this.accounts[this.actAccount++] = account; } }