public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     StyleBrowserDialog dialog = new StyleBrowserDialog((FontData) value);
     if (dialog.ShowDialog() == DialogResult.OK)
         return dialog.SelectedFont;
     return value;
 }
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            StyleBrowserDialog dialog = new StyleBrowserDialog((FontData)value);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                return(dialog.SelectedFont);
            }
            return(value);
        }