Exemple #1
0
        static void Main(string[] args)
        {
            string action;

            DBPublisher myAccount = new DBPublisher();
            myAccount.objBalChanged += OnBalanceSubscriber;
            myAccount.objGoalChanged += OnGoalSubscriber;
            do {
                action = Console.ReadLine();
                if (action != "exit")
                {
                    myAccount.Action = Int32.Parse(action);
                }
            } 
            while(action != "exit");
        }
Exemple #2
0
        static void Main(string[] args)
        {
            string action;

            DBPublisher myAccount = new DBPublisher();

            myAccount.objBalChanged  += OnBalanceSubscriber;
            myAccount.objGoalChanged += OnGoalSubscriber;
            do
            {
                action = Console.ReadLine();
                if (action != "exit")
                {
                    myAccount.Action = Int32.Parse(action);
                }
            }while(action != "exit");
        }