Example #1
0
 public static void Event_LM(RGBKB_Event_Data event_data)
 {
     if (event_data.event_id != RGBKB_EventID.Brightness_update)
     {
         return;
     }
     uint brightness = (uint)event_data.event_data[0];
 }
Example #2
0
        public void Event_LM(RGBKB_Event_Data event_data)
        {
            if (event_data.event_id != RGBKB_EventID.Brightness_update)
            {
                return;
            }
            int brightness = (int)event_data.event_data[0];

            Application.Current.Dispatcher.Invoke((Action)(() => this.ShowBLOSD(brightness)));
        }