/// <summary> /// Initializes a new instance of the <see cref="NuGenCollectionEditorMainBlock"/> class. /// </summary> public NuGenCollectionEditorMainBlock() { _title = new NuGenCollectionEditorTitle(); _actionPanel = new Panel(); _populatePanel = new Panel(); _moveDownButton = new Button(); _moveUpButton = new Button(); _populatePanel.Dock = DockStyle.Bottom; _populatePanel.Height = 29; _populatePanel.Padding = new Padding(0, 5, 0, 0); _populatePanel.Parent = this; _moveDownButton.Image = Resources.Down; _moveDownButton.Parent = _actionPanel; _moveDownButton.TabIndex = 20; _moveUpButton.Image = Resources.Up; _moveUpButton.Parent = _actionPanel; _moveUpButton.TabIndex = 10; _actionPanel.Dock = DockStyle.Right; _actionPanel.Padding = new Padding(5, 0, 0, 0); _actionPanel.Parent = this; _actionPanel.Width = 35; foreach (Control ctrl in _actionPanel.Controls) { ctrl.Dock = DockStyle.Top; } _title.Dock = DockStyle.Top; _title.Parent = this; }
/// <summary> /// Initializes a new instance of the <see cref="NuGenCollectionEditorPropertyBlock"/> class. /// </summary> public NuGenCollectionEditorPropertyBlock() { _propertyGrid = new NuGenPropertyGrid(); _title = new NuGenCollectionEditorTitle(); _propertyGrid.Dock = DockStyle.Fill; _propertyGrid.Parent = this; _propertyGrid.SelectedObjectsChanged += delegate { this.OnSelectedObjectsChanged(EventArgs.Empty); }; _title.Dock = DockStyle.Top; _title.Parent = this; }