public void Configure(SwitchConfig config) { var command = new SwitchActionCommand(); config.Configure(command); _commander.Execute(command); }
public void Configure(SwitchActionCommand command) { command.AsynchronousReportingEnabled = BoolToTriState(AsyncReporting); command.DoublePressAction = DoublePress; command.SinglePressAction = SinglePress; command.IsHapticFeedbackEnabled = BoolToTriState(HapticFeedback); command.ResetParameters = true; }