public void SetFormatForSensorType(string sensorType, IOverlayEntry selectedEntry, IOverlayEntryFormatChange checkboxes)
 {
     foreach (var entry in _overlayEntries
              .Where(x => _sensorService.GetSensorTypeString(x) == sensorType))
     {
         if (checkboxes.Colors)
         {
             entry.GroupColor      = selectedEntry.GroupColor;
             entry.Color           = selectedEntry.Color;
             entry.UpperLimitColor = selectedEntry.UpperLimitColor;
             entry.LowerLimitColor = selectedEntry.LowerLimitColor;
         }
         if (checkboxes.Limits)
         {
             entry.UpperLimitValue = selectedEntry.UpperLimitValue;
             entry.LowerLimitValue = selectedEntry.LowerLimitValue;
         }
         if (checkboxes.Format)
         {
             entry.GroupFontSize = selectedEntry.GroupFontSize;
             entry.ValueFontSize = selectedEntry.ValueFontSize;
         }
         entry.FormatChanged = true;
     }
 }
 public void SetFormatForGroupName(string groupName, IOverlayEntry selectedEntry, IOverlayEntryFormatChange checkboxes)
 {
     foreach (var entry in _overlayEntries
              .Where(x => x.GroupName == groupName))
     {
         if (checkboxes.Colors)
         {
             entry.GroupColor      = selectedEntry.GroupColor;
             entry.Color           = selectedEntry.Color;
             entry.UpperLimitColor = selectedEntry.UpperLimitColor;
             entry.LowerLimitColor = selectedEntry.LowerLimitColor;
         }
         if (checkboxes.Limits)
         {
             entry.UpperLimitValue = selectedEntry.UpperLimitValue;
             entry.LowerLimitValue = selectedEntry.LowerLimitValue;
         }
         if (checkboxes.Format)
         {
             entry.GroupFontSize = selectedEntry.GroupFontSize;
             entry.ValueFontSize = selectedEntry.ValueFontSize;
         }
         entry.FormatChanged = true;
     }
 }