static void Main(string[] args) { Boss huhansan = new Boss(); StockObserver tongshi1 = new StockObserver("Wei"); huhansan.ActionNotify += tongshi1.CloseStockMarket; huhansan.Notify(); }
static void Main(string[] args) { Boss huhansan = new Boss(); StockObserver tongshi1 = new StockObserver("Wei"); huhansan.ActionNotify += tongshi1.CloseStockMarket; huhansan.Notify(); }