public PropertyGrid(EditorManager manager) { this._editorManager = manager; this._expand = new PropertyGridExpand(this._editorManager, this); this._sw.HScrollbar.Visible = true; this._sw.VScrollbar.Visible = true; this.container = (Gtk.Container) new EventBox(); this._sw.AddWithViewport((Widget)this.container); this.container.Name = "CocoStudio.ToolKit.PropertyGrid.EventBox"; this._sw.Name = "CocoStudio.ToolKit.PropertyGrid.CompactScrolledWindow"; this.Add((Widget)this._propertyTable); }
public ComponentGrid(string name = "") { this.expand = new PropertyGridExpand(new EditorManager(), (PropertyGrid)null); this.ComponentTable = new Table(2U, 1U, false); Table table = new Table(1U, 2U, false); Label label = new Label(); table.Attach((Widget)label, 0U, 1U, 0U, 1U, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Fill, 0U, 0U); label.Show(); Button button = new Button(); table.Attach((Widget)button, 0U, 1U, 1U, 2U, AttachOptions.Fill, AttachOptions.Fill, 0U, 0U); button.Show(); this.ComponentTable.Attach((Widget)table, 0U, 1U, 0U, 1U, AttachOptions.Expand | AttachOptions.Fill, AttachOptions.Fill, 0U, 0U); table.Show(); this.expand.ExpandTable.Show(); }