protected virtual void CheckIcon(XControl control, List<Icon> icons) { if (control is IIcon) { List<Icon> cIcons = ((IIcon)control).Icons; foreach (Icon icon in cIcons) { if (!icons.Contains(icon) && icon != Icon.None) { icons.Add(icon); } } } }