コード例 #1
0
 private void Deck_ConnectionStateChanged(object sender, StreamDeckSharp.ConnectionEventArgs e)
 {
     if (ConnectionChanged != null)
     {
         ConnectionChanged(sender, e);
     }
     // throw new NotImplementedException();
 }
コード例 #2
0
ファイル: Form1.cs プロジェクト: elierodrigue/StreamDeckTool
 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;
     }
 }