public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            MenuStrip instance = context.Instance as MenuStrip;

            if (instance == null)
            {
                return(base.GetStandardValues(context));
            }
            TypeConverter.StandardValuesCollection standardValues = base.GetStandardValues(context);
            ArrayList values = new ArrayList();
            int       count  = standardValues.Count;

            for (int i = 0; i < count; i++)
            {
                ToolStripItem item = standardValues[i] as ToolStripItem;
                if ((item != null) && (item.Owner == instance))
                {
                    values.Add(item);
                }
            }
            return(new TypeConverter.StandardValuesCollection(values));
        }
        public override TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext context)
        {
            TypeConverter.StandardValuesCollection standardValues = base.GetStandardValues(context);
            ArrayList values = new ArrayList();
            int       count  = standardValues.Count;
            bool      flag   = false;

            for (int i = 0; i < count; i++)
            {
                if ((standardValues[i] is Environment.SpecialFolder) && standardValues[i].Equals(Environment.SpecialFolder.Personal))
                {
                    if (!flag)
                    {
                        flag = true;
                        values.Add(standardValues[i]);
                    }
                }
                else
                {
                    values.Add(standardValues[i]);
                }
            }
            return(new TypeConverter.StandardValuesCollection(values));
        }