object ICustomTypeDescriptor.GetEditor(System.Type editorBaseType)
 {
     if (editorBaseType != typeof(ComponentEditor))
     {
         return null;
     }
     if ((this.editor == null) && ((this.editor == null) && this.HasPropertyPages()))
     {
         this.editor = new AxComponentEditor();
     }
     return this.editor;
 }
示例#2
0
文件: AxHost.cs 项目: JianwenSun/cc
        Object ICustomTypeDescriptor.GetEditor(Type editorBaseType) {
            if (editorBaseType != typeof(ComponentEditor))
                return null;
            
            if (editor != null)
                return editor;

            if (editor == null && HasPropertyPages())
                editor = new AxComponentEditor();
            
            return editor;
        }