public void RenderSubItemCommand(BashCommandMenuItemInfo menuItemInfo)
        {
            var valueLabel = menuItemInfo.Label;
            var valueKey   = menuItemInfo.Key;

            var value = String.Empty;

            if (CurrentDevice.UpdatedData.ContainsKey(valueKey))
            {
                value = CurrentDevice.UpdatedData [valueKey];
            }
            else if (CurrentDevice.Data.ContainsKey(valueKey))
            {
                value = CurrentDevice.Data [valueKey];
            }

            if (!CurrentDevice.Data.ContainsKey(valueKey))
            {
                CurrentDevice.Data [valueKey] = value;
            }

            value = FixValueForDisplay(value, valueKey, CurrentDevice);

            // Send the second line to the display
            var message = valueLabel + " " + value + menuItemInfo.PostFix;

            SendMessageToDisplay(1, message);
        }
        public string GetCommandOptionValueByIndex(BashCommandMenuItemInfo menuItemInfo, int index)
        {
            var i = 0;

            foreach (var option in menuItemInfo.Options)
            {
                if (i == index)
                {
                    return(option.Value);
                }
                i++;
            }
            return(String.Empty);
        }
        public string GetCommandOptionKeyByIndex(BashCommandMenuItemInfo menuItemInfo, int index)
        {
            var output = "";
            var i      = 0;

            foreach (var option in menuItemInfo.Options)
            {
                if (i == index)
                {
                    output = option.Key;
                    break;
                }
                i++;
            }
            return(output);
        }