public ResourceControl( ) { mainSplitter = new Splitter( ); contextMenu = new ContextMenu( ); resourceSelectionControl = new ResourceSelectionControl( this ); resourceContentControl = new ResourceContentControl( this ); SuspendLayout( ); // resourceSelectionControl resourceSelectionControl.Dock = DockStyle.Top; resourceSelectionControl.Location = new Point( 0, 0 ); resourceSelectionControl.Size = new Size( 592, 328 ); resourceSelectionControl.TabIndex = 0; // resourceSelectionPanel.DockPadding.All = 5; // mainSplitter mainSplitter.Dock = DockStyle.Top; mainSplitter.MinExtra = 213; mainSplitter.MinSize = 328; // contentControl resourceContentControl.Location = new Point( 0, 328 ); resourceContentControl.Size = new Size( 592, 213 ); resourceContentControl.Dock = DockStyle.Fill; resourceContentControl.TabIndex = 3; Controls.Add( resourceContentControl ); Controls.Add( mainSplitter ); Controls.Add( resourceSelectionControl ); ResumeLayout( false ); resourceSelectionControl.ResourceListBox.SelectedIndexChanged += new EventHandler( OnResourceListBoxSelectedIndexChanged ); }
public ResourceControl( ) { mainSplitter = new Splitter( ); contextMenu = new ContextMenu( ); resourceSelectionControl = new ResourceSelectionControl(this); resourceContentControl = new ResourceContentControl(this); SuspendLayout( ); // resourceSelectionControl resourceSelectionControl.Dock = DockStyle.Top; resourceSelectionControl.Location = new Point(0, 0); resourceSelectionControl.Size = new Size(592, 328); resourceSelectionControl.TabIndex = 0; // resourceSelectionPanel.DockPadding.All = 5; // mainSplitter mainSplitter.Dock = DockStyle.Top; mainSplitter.MinExtra = 213; mainSplitter.MinSize = 328; // contentControl resourceContentControl.Location = new Point(0, 328); resourceContentControl.Size = new Size(592, 213); resourceContentControl.Dock = DockStyle.Fill; resourceContentControl.TabIndex = 3; Controls.Add(resourceContentControl); Controls.Add(mainSplitter); Controls.Add(resourceSelectionControl); ResumeLayout(false); resourceSelectionControl.ResourceListBox.SelectedIndexChanged += new EventHandler(OnResourceListBoxSelectedIndexChanged); }