private void OnChannelStateRequest(ChannelStatus status)
 {
     var handler = ChannelStateRequest;
     if (handler != null)
         handler(this, status);
 }
 void _switch_ChannelStateRequest(object sender, ChannelStatus e)
 {
     SetMessage(String.Format("Setting state {0} for channel {1}", e.State, e.ChannelNumber));
 }
 private void OnChannelStateConfirmation(ChannelStatus status)
 {
     var handler = ChannelStateConfirmation;
     if (handler != null)
         handler(this, status);
 }
 void _switch_ChannelStateConfirmation(object sender, ChannelStatus e)
 {
     SetMessage(String.Format("State {0} for channel {1} is set", e.State, e.ChannelNumber));
 }