public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider != null) { IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc == null) { return(value); } if (this.eventEditorUC == null) { BaseControl baseControl = (BaseControl)context.Instance; FrameType frameType = (FrameType)baseControl.SerializationObject; this.eventEditorUC = new EventEditorUserControl( frameType, context.PropertyDescriptor.Name, baseControl.DesignerLoader, edSvc); } //this.dockUI.Start(edSvc, value); this.eventEditorUC.Script = value as string; edSvc.DropDownControl(this.eventEditorUC); return(this.eventEditorUC.Script); //value = this.dockUI.Value; //this.dockUI.End(); } return(value); }
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value) { if (provider != null) { IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)); if (edSvc == null) { return value; } if (this.eventEditorUC == null) { BaseControl baseControl = (BaseControl)context.Instance; FrameType frameType = (FrameType)baseControl.SerializationObject; this.eventEditorUC = new EventEditorUserControl( frameType, context.PropertyDescriptor.Name, baseControl.DesignerLoader, edSvc); } //this.dockUI.Start(edSvc, value); this.eventEditorUC.Script = value as string; edSvc.DropDownControl(this.eventEditorUC); return this.eventEditorUC.Script; //value = this.dockUI.Value; //this.dockUI.End(); } return value; }