private void Deck_ConnectionStateChanged(object sender, StreamDeckSharp.ConnectionEventArgs e) { if (ConnectionChanged != null) { ConnectionChanged(sender, e); } // throw new NotImplementedException(); }
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; } }