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

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

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