public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider == null) { return(null); } IWindowsFormsEditorService iwefs = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); SuperToolTipInfoWrapper info = (SuperToolTipInfoWrapper)value; dlgSuperToolTipEditor dlg = new dlgSuperToolTipEditor(info); if (iwefs.ShowDialog(dlg) == DialogResult.OK) { return(dlg.SuperToolTipInfoWrapper); } return(value); }
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider == null) { return null; } IWindowsFormsEditorService iwefs = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); SuperToolTipInfoWrapper info = (SuperToolTipInfoWrapper)value; dlgSuperToolTipEditor dlg = new dlgSuperToolTipEditor(info); if (iwefs.ShowDialog(dlg) == DialogResult.OK) { return dlg.SuperToolTipInfoWrapper; } return value; }