private void PfspManager_ButtonUp(object sender, PFSwPanelSwitchEventArgs e) { m_worker.ReportProgress(50, $"SwitchPanelSupport - {e.Switch.ToString( )} Up"); if (m_udp == null) { return; } string key = InputSwitch.Input_On(e.Switch.ToString()); if (m_panelConfig.VJCommands.ContainsKey(key)) { var cmd = m_panelConfig.VJCommands[key]; if (cmd.IsValid) { m_udp.SendMsg(cmd.JString); SwitchPanelLed.HandleLed(cmd.CtrlExt1, m_pfspManager); } } }
private void PfspManager_RotaryChanged(object sender, PFSwPanelRotaryEventArgs e) { m_worker.ReportProgress(50, $"SwitchPanelSupport - Rotary changed to {e.State.RotaryState( ).ToString( )}"); if (m_udp == null) { return; } string key = InputRotary.Rotary_Pos("ROTARY", (int)e.State.RotaryState( )); if (m_panelConfig.VJCommands.ContainsKey(key)) { var cmd = m_panelConfig.VJCommands[key]; if (cmd.IsValid) { m_udp.SendMsg(cmd.JString); SwitchPanelLed.HandleLed(cmd.CtrlExt1, m_pfspManager); } } }