Esempio n. 1
0
        private void ConsolPoller_RaiseCustomEvent(object sender, PollFinishedEventArgs e)
        {
            // event recieved
            Console.Clear();

            // display the channel that was recieved
            e.GetChannel.FullDisplay();
        }
Esempio n. 2
0
        protected virtual void OnRaiseCustomEvent(PollFinishedEventArgs e)
        {
            EventHandler <PollFinishedEventArgs> handler = this.RaiseCustomEvent;

            if (handler != null)
            {
                handler(this, e);
            }
        }