Esempio n. 1
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value)
 {
     if (this.m_ui == null)
     {
         this.m_ui = new DockAreasEditorControl();
     }
     this.m_ui.SetStates((DockAreas)value);
     ((IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService))).DropDownControl(this.m_ui);
     return(this.m_ui.DockAreas);
 }
Esempio n. 2
0
 public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value)
 {
     if(this.m_ui == null){
         this.m_ui = new DockAreasEditorControl();
     }
     this.m_ui.SetStates((DockAreas)value);
     IWindowsFormsEditorService edSvc =
             (IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService));
     edSvc.DropDownControl(this.m_ui);
     return this.m_ui.DockAreas;
 }
Esempio n. 3
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (m_ui == null)
            {
                m_ui = new DockAreasEditorControl();
            }

            m_ui.SetStates((DockAreas)value);

            var edSvc = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

            edSvc.DropDownControl(m_ui);

            return(m_ui.DockAreas);
        }