/// <inheritdoc/>
        public override EditorControl CreateControl(OptionHandler oh, bool autoAdopt, bool autoCommit)
        {
            PropertyModelView view = new PropertyModelView(oh, this, true);

            view.IsAutoAdopt  = autoAdopt;
            view.IsAutoCommit = autoCommit;
            EditorControl clientControl = new DialogEditorControl(view, MultiLine);

            return(clientControl);
        }
Example #2
0
        public DialogSectionControl(DialogEditorControl parent, PropertyDescriptorCollection descriptors,
                                    bool drawBox,
                                    string title)
        {
            this.descriptors = descriptors;
            this.drawBox     = drawBox;
            this.title       = title;
            RegisterView(parent.View);
            bindingSource         = _registeredViews;
            this.parent           = parent;
            parent.StatusChanged += view_StatusChanged;
            itemFactory           = new ItemFactory(this);
            InitializeComponent();
            ConfigureFirstColumnWidth();
            SetChildWidth(minWidth);
//      if(clientControl != null) {
//        clientControl.Dock = DockStyle.Fill;
//      }
//
//      if(enclosure != null) {
//        enclosure.Dock = DockStyle.Fill;
//      }
//      this.PerformLayout();
        }
Example #3
0
        public DialogSectionControl(DialogEditorControl parent,
                                    PropertyDescriptorCollection descriptors, PropertyDescriptor parentDesc, bool drawBox)
        {
            this.descriptors = descriptors;
            this.drawBox     = drawBox;
            this.title       = parentDesc.DisplayName;
            _registeredProxies.Add(new DescriptorProxy(descriptors));
            bindingSource         = _registeredProxies;
            this.parent           = parent;
            parent.StatusChanged += view_StatusChanged;
            itemFactory           = new ItemFactory(this);
            InitializeComponent();
            ConfigureFirstColumnWidth();
            SetChildWidth(minWidth);
            this.minWidth = this.Width = minWidth + 6;
//      if (clientControl != null) {
//        clientControl.Dock = DockStyle.Fill;
//      }
//
//      if (enclosure != null) {
//        enclosure.Dock = DockStyle.Fill;
//      }
//      this.PerformLayout();
        }