internal static BUTTON[] Get(BUTTONGROUP key) { BUTTON[] result = null; if (_buttonGroups.TryGetValue(key, out result)) { return(result); } return(null); }
public static string[] GetButtonGroup(BUTTONGROUP name) { var buttons = ButtonGroup.Get(name); var list = new List <string>(); foreach (var button in buttons) { list.Add(NEEOButton.Get(button)); } return(list.ToArray()); }
public DeviceBuilder AddButtonGroup(BUTTONGROUP name) { _logger.LogDebug($"Add buttongroup {name}"); var buttonGroup = ValidationModule.GetButtonGroup(name); if (buttonGroup != null) { foreach (string button in buttonGroup) { _buttons.Add(new Parameter(ComponentType.TYPE_BUTTON, button, null)); } } return(this); }
public static string Get(BUTTONGROUP buttongroup) { return(buttongroup.ToString().Replace('_', ' ')); }