private void Deck_ConnectionStateChanged(object sender, StreamDeckSharp.ConnectionEventArgs e)
 {
     if (ConnectionChanged != null)
     {
         ConnectionChanged(sender, e);
     }
     // throw new NotImplementedException();
 }
Esempio n. 2
0
 private void Form1_ConnectionChanged(object sender, StreamDeckSharp.ConnectionEventArgs e)
 {
     if (chkConnection.InvokeRequired)
     {
         chkConnection.Invoke(new EventHandler <StreamDeckSharp.ConnectionEventArgs>(Form1_ConnectionChanged), sender, e);
     }
     else
     {
         chkConnection.Checked = e.NewConnectionState;
     }
 }