/// <summary> /// excecute action with Setting property and "additionalCondition" flag /// </summary> /// <param name="kls"></param> /// <param name="additionalCondition"></param> /// <param name="action"></param> public void Select(KeyListenSetting kls, bool additionalCondition, Action <KeyListenSetting> action) { if (additionalCondition && kls.Equals(Setting)) { action?.Invoke(Setting); } }
/// <summary> /// execute action when kls setting is for this object(compare to Setting property) /// </summary> /// <param name="kls"></param> /// <param name="action"></param> public void Select(KeyListenSetting kls, Action <KeyListenSetting> action) { if (kls.Equals(Setting)) { action?.Invoke(Setting); } }