Пример #1
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
 {
     EnumCheckedListBox box1;
     if (((context != null) && (context.Instance != null)) && (provider != null))
     {
         this.edSvc = ((IWindowsFormsEditorService) provider.GetService(typeof(IWindowsFormsEditorService)));
         if (this.edSvc != null)
         {
             box1 = new EnumCheckedListBox(value);
             this.edSvc.DropDownControl(box1);
             value = box1.GetNewValue();
         }
     }
     return value;
 }
Пример #2
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            EnumCheckedListBox box1;

            if (((context != null) && (context.Instance != null)) && (provider != null))
            {
                this.edSvc = ((IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService)));
                if (this.edSvc != null)
                {
                    box1 = new EnumCheckedListBox(value);
                    this.edSvc.DropDownControl(box1);
                    value = box1.GetNewValue();
                }
            }
            return(value);
        }