public void Update(object sender, StockInfoEventHandlerEventArg e) { StockInfoEventHandlerEventArg sInfoEventHandlerEventArg = e; Console.WriteLine( sInfoEventHandlerEventArg.Euro > 40 ? "Банк {0} продает евро; Курс евро: {1}" : "Банк {0} покупает евро; Курс евро: {1}", this.Name, sInfoEventHandlerEventArg.Euro); }
public Stock() { _stocksInfoEventHandlerEventArg = new StockInfoEventHandlerEventArg(); }