Ejemplo n.º 1
0
        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();
        }
        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();
        }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
        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();
        }