public void SetRetentionTimeFilter(RetentionTimeFilterType retentionTimeFilterType, double length)
 {
     switch (retentionTimeFilterType)
     {
         case RetentionTimeFilterType.none:
             radioKeepAllTime.Checked = true;
             break;
         case RetentionTimeFilterType.scheduling_windows:
             radioUseSchedulingWindow.Checked = true;
             tbxTimeAroundPrediction.Text = length.ToString(CultureInfo.CurrentCulture);
             break;
         case RetentionTimeFilterType.ms2_ids:
             radioTimeAroundMs2Ids.Checked = true;
             tbxTimeAroundMs2Ids.Text = length.ToString(CultureInfo.CurrentCulture);
             break;
         default:
             // ReSharper disable LocalizableElement
             throw new ArgumentException("Invalid RetentionTimeFilterType", "retentionTimeFilterType"); // Not L10N
             // ReSharper restore LocalizableElement
     }
 }
 public void SetRetentionTimeFilter(RetentionTimeFilterType retentionTimeFilterType, double length)
 {
     FullScanSettingsControl.SetRetentionTimeFilter(retentionTimeFilterType, length);
 }