Beispiel #1
0
 private void TriggerEvent(EventHandler <LcdSoftButtonsEventArgs> e, LcdSoftButtons buttons)
 {
     if (e != null)
     {
         e(this, new LcdSoftButtonsEventArgs(buttons));
     }
 }
Beispiel #2
0
 private int SoftButtonsChangedCallback(int device, LcdSoftButtons buttons, IntPtr context)
 {
     try
     {
         OnSoftButtonsChanged(buttons);
     }
     catch (Exception) { }
     return(0);
 }
Beispiel #3
0
        /// <summary>
        /// Raise the <see cref="OnSoftButtonsChanged"/> event.
        /// </summary>
        /// <param name="buttons"></param>
        private void OnSoftButtonsChanged(LcdSoftButtons buttons)
        {
            EventHandler <LcdSoftButtonsEventArgs> handler = SoftButtonsChanged;

            if (handler != null)
            {
                handler(this, new LcdSoftButtonsEventArgs(buttons));
            }
        }
Beispiel #4
0
 private int SoftButtonsChangedCallback(int device, LcdSoftButtons buttons, IntPtr context)
 {
     OnSoftButtonsChanged(buttons);
     return(0);
 }
Beispiel #5
0
 /// <summary>
 /// Raise the <see cref="OnSoftButtonsChanged"/> event.
 /// </summary>
 /// <param name="buttons"></param>
 private void OnSoftButtonsChanged(LcdSoftButtons buttons)
 {
     SoftButtonsChanged?.Invoke(this, new LcdSoftButtonsEventArgs(buttons));
 }
 /// <summary>
 /// Creates a new instance of <see cref="LcdSoftButtonsEventArgs"/> with the specified soft buttons.
 /// </summary>
 /// <param name="softButtons"><see cref="LcdSoftButtons"/> represented by these arguments.</param>
 public LcdSoftButtonsEventArgs(LcdSoftButtons softButtons)
 {
     _softButtons = softButtons;
 }
 private static extern int LgLcdReadSoftButtons64(int device, out LcdSoftButtons buttons);