/// <summary> /// Метод осуществляет перевод денег му счетами /// </summary> /// <param name="accountFrom"></param> /// <param name="accountTo"></param> /// <param name="sum"></param> public void BalanceTransferTo(Account accountTo, double sum) { this.Balance -= sum; accountTo.Balance += sum; CommitTransaction?.Invoke(this, accountTo, sum); }
internal static void OnCommitTransaction(object sender, EventArgs e) { CommitTransaction?.Invoke(sender, e); }