示例#1
0
 public void SelectedButtonChanged(object sender, StreamDeckSelectedButtonChangedArgs e)
 {
     try
     {
         SetFormState();
     }
     catch (Exception ex)
     {
         Common.LogError(ex);
     }
 }
示例#2
0
 public void SelectedButtonChanged(object sender, StreamDeckSelectedButtonChangedArgs e)
 {
     try
     {
         if (_streamDeckPanel.BindingHash == e.BindingHash)
         {
             SetFormState();
         }
     }
     catch (Exception ex)
     {
         Common.LogError(ex);
     }
 }
 public void SelectedButtonChanged(object sender, StreamDeckSelectedButtonChangedArgs e)
 {
     try
     {
         /*
          * Only do it when it is a different button selected. Should make more comments...
          */
         if (SelectedImageBill == null || SelectedImageBill.Button.GetHash() != e.SelectedButton.GetHash())
         {
             SetSelectedButtonUIOnly(e.SelectedButton.StreamDeckButtonName);
         }
     }
     catch (Exception ex)
     {
         Common.LogError(ex);
     }
 }