public bool ButtonState(CarButtons button)
        {
            if (null == lastReportedButtons)
            {
                return(false); // not updated yet
            }
            var index = (int)button;

            if (index < 0 || index >= lastReportedButtons.Length)
            {
                return(false); // out of range
            }
            return(lastReportedButtons[index]);
        }
 public CarButtonEventArgs(CarButtons button, bool on)
 {
     this.Button = button;
     this.On     = on;
 }
        public bool ButtonState(CarButtons button)
        {
            if (null == lastReportedButtons)
                return false; // not updated yet

            var index = (int)button;
            if (index < 0 || index >= lastReportedButtons.Length)
                return false; // out of range

            return lastReportedButtons[index];
        }
 public CarButtonEventArgs(CarButtons button, bool on)
 {
     this.Button = button;
     this.On = on;
 }