protected void InitializeControl() { this.SuspendLayout(); this.BackColor = Color.White; ControlContainer = new SplitContainer(); ControlContainer.Dock = DockStyle.Fill; CollectionBrowser = new RsCollectionBrowser(RsViewEngine.CollectionManager); CollectionBrowser.Dock = DockStyle.Fill; CollectionBrowser.Size = new System.Drawing.Size( 512, CollectionBrowser.Height ); ListContext = new RsCollectionManagement.RsCollectionMgmtContext(this); ItemList = new ListView(); ItemList.Dock = DockStyle.Fill; ItemList.View = View.LargeIcon; ItemList.ContextMenu = ListContext; this.Controls.Add(ControlContainer); ControlContainer.Panel1.Controls.Add(CollectionBrowser); ControlContainer.Panel2.Controls.Add(ItemList); this.ResumeLayout(); AssignEventHandlers(); }
public RsCollectionTree(RsCollectionBrowser aOwner, RsCollectionProvider aProvider) { Size = new Size(128, 512); ResizeRedraw = true; DoubleBuffered = true; Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); Margin = new Padding(16); NodeHeight = 32; NodeIndent = 24; RootNodes = new List <RsCollectionTreeNode>(); Owner = aOwner; CollectionProvider = aProvider; RefreshPageTitle(); FolderContext = new RsCollectionTree.RsCollectionTreeContextMenu(this); RefreshTree(); }
public RsCollectionTree(RsCollectionBrowser aOwner, RsCollectionProvider aProvider) { Size = new Size(128, 512); ResizeRedraw = true; DoubleBuffered = true; Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right); Margin = new Padding(16); NodeHeight = 32; NodeIndent = 24; RootNodes = new List<RsCollectionTreeNode>(); Owner = aOwner; CollectionProvider = aProvider; RefreshPageTitle(); FolderContext = new RsCollectionTree.RsCollectionTreeContextMenu(this); RefreshTree(); }