static void Main(string[] args)
        {
            var account = new BankAccount
            {
                FullName = "P.P Petrovich"
            };

            account.RegisterReporter(new SendMessageDelegate(
                                         new ConsoleReporter().SendMessage));
            account.AddSum(1000);
            account.WithdrowSum(100);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            var account = new BankAccount
            {
                FullName = "П.П.Якубович"
            };

            account.RegisterReporter(new SendMessageDelegate(new ConsoleReporter().SendMessage));

            account.AddSum(1000);
            account.WithdrowSum(100);
            Console.Read();
        }