示例#1
0
        public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value)
        {
            IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService));

            if (m_ui == null)
            {
                m_ui = new DockAreasEditor.DockAreasEditorControl();
            }

            m_ui.SetStates(edSvc, (DockAreas)value);
            edSvc.DropDownControl(m_ui);

            return(m_ui.DockAreas);
        }
示例#2
0
    public override object EditValue(ITypeDescriptorContext context, IServiceProvider sp, object value) {
      IWindowsFormsEditorService edSvc = (IWindowsFormsEditorService)sp.GetService(typeof(IWindowsFormsEditorService));

      if (m_ui == null)
        m_ui = new DockAreasEditor.DockAreasEditorControl();

      m_ui.SetStates(edSvc, (DockAreas)value);
      edSvc.DropDownControl(m_ui);

      return m_ui.DockAreas;
    }