示例#1
0
 internal static BUTTON[] Get(BUTTONGROUP key)
 {
     BUTTON[] result = null;
     if (_buttonGroups.TryGetValue(key, out result))
     {
         return(result);
     }
     return(null);
 }
示例#2
0
        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());
        }
示例#3
0
        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);
        }
示例#4
0
 public static string Get(BUTTONGROUP buttongroup)
 {
     return(buttongroup.ToString().Replace('_', ' '));
 }