public void UpdateStatus()
        {
            EnabledValue newEnabledValue = new EnabledValue();
            EnabledValue oldEnabledValue = new EnabledValue();

            ledBulbEqualcurrentFirmware.On = true;
            if (currentFirmwareHelper != null && NewFirmwareHelper != null)
            {
                newEnabledValue = NewFirmwareHelper.GetEnableValue(Feature);
                oldEnabledValue = currentFirmwareHelper.GetEnableValue(Feature);

                if (oldEnabledValue.Value == null && newEnabledValue.Value != null)
                {
                    ledBulbEqualcurrentFirmware.Color = Color.Yellow;
                }
                else
                {
                    ledBulbEqualcurrentFirmware.Color = (oldEnabledValue.Enabled == newEnabledValue.Enabled && oldEnabledValue.Value == newEnabledValue.Value)
                        ? Color.Green
                        : Color.Red;
                }
            }
            if (NewFirmwareHelper != null)
            {
                chkBxProperty.Checked = newEnabledValue.Enabled;
                txtBxValue.Text       = newEnabledValue.Value;
            }
        }
        public EnabledValue GetEnableValue(string feature)
        {
            EnabledValue returnEnabledValue = new EnabledValue();

            // Get the last occurance for the feature in new firmware
            int row = GetFirmwareFeatureRow(feature);

            if (row == 0)
            {
                returnEnabledValue.Enabled = false;
                returnEnabledValue.Value   = null;
                return(returnEnabledValue);
            }

            string currentRow = _fctbFirmware.GetLineText(row);

            if (currentRow.Trim().StartsWith(@"//"))
            {
                returnEnabledValue.Enabled = false;
            }
            else
            {
                returnEnabledValue.Enabled = true;
            }

            var featurevalue = currentRow.Substring(currentRow.IndexOf(feature, StringComparison.Ordinal));

            featurevalue = featurevalue.Replace(feature, "");
            if (featurevalue.Contains(@"//"))
            {
                featurevalue = featurevalue.Substring(0, featurevalue.IndexOf(@"//", StringComparison.Ordinal)).Trim();
            }

            returnEnabledValue.Value = featurevalue.Trim();

            return(returnEnabledValue);
        }