Exemple #1
0
        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;
        }
Exemple #2
0
 public TickerFilter(Ticker ticker)
 {
     this.ticker = ticker;
     this.ticker.TickEvent += new TickEventHandler(ticker_TickEvent);
 }
Exemple #3
0
 public TickerFilter(Ticker ticker)
 {
     this.ticker            = ticker;
     this.ticker.TickEvent += new TickEventHandler(ticker_TickEvent);
 }