예제 #1
0
        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);
        }
예제 #2
0
		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;
		}