public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value) { // Attempts to obtain an IWindowsFormsEditorService IWindowsFormsEditorService edSvc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; if (edSvc == null) return value; // Displays a drop-down control ShapeEdit editForm = new ShapeEdit(edSvc); editForm.Shape = value as MindFusion.FlowChartX.ShapeTemplate; edSvc.DropDownControl(editForm); return editForm.Shape; }
public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value) { // Attempts to obtain an IWindowsFormsEditorService IWindowsFormsEditorService edSvc = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService; if (edSvc == null) { return(value); } // Displays a drop-down control ShapeEdit editForm = new ShapeEdit(edSvc); editForm.Shape = value as MindFusion.FlowChartX.ShapeTemplate; edSvc.DropDownControl(editForm); return(editForm.Shape); }