static void Main(string[] args) { Ticker ticker = new Ticker(); ticker.TickEvent += new TickEventHandler(ticker_TickEvent); TickerFilter tf = new TickerFilter(ticker); ticker.IsEnabled = true; Thread thr = new Thread(new System.Threading.ThreadStart(ticker.RunTiker)); thr.Start(); Thread.Sleep(150); ticker.IsEnabled = false; }
public TickerFilter(Ticker ticker) { this.ticker = ticker; this.ticker.TickEvent += new TickEventHandler(ticker_TickEvent); }