private bool ValidateAppliedFilters() { StringCollection duplicateChoices = DesignerUtility.GetDuplicateChoiceTreeNodes( _appliedFiltersList.TvList.Nodes ); if (duplicateChoices.Count > 0) { GenericUI.ShowWarningMessage( SR.GetString(SR.AppliedDeviceFiltersDialog_Title), SR.GetString(SR.AppliedDeviceFiltersDialog_DuplicateChoices, GenericUI.BuildCommaDelimitedList(duplicateChoices)) ); return(false); } return(true); }
private bool ValidateLoadedChoices() { StringCollection duplicateChoices = DesignerUtility.GetDuplicateChoiceTreeNodes( _cbChoices.Items ); if (duplicateChoices.Count > 0) { if (!_ignoreSelectionChanged) { GenericUI.ShowWarningMessage( SR.GetString(SR.PropertyOverridesDialog_Title), SR.GetString(SR.PropertyOverridesDialog_DuplicateChoices, GenericUI.BuildCommaDelimitedList(duplicateChoices)) ); } return(false); } return(true); }