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"); }
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"); }