//private Panel _PanelTree = null;
        //public Panel PanelTree
        //{
        //    get { return _PanelTree; }
        //}
        //public ToolStrip FToolBar
        //{
        //    get { return FForm.FToolBar; }
        //}
        public virtual void PaintPanels()
        {
            FForm.SuspendLayout();
            FForm.ContentPanel.Controls.Clear();
            Panel panel = FForm.ContentPanel;

            //ToolStripButton ButtonGrouping = new ToolStripButton("√руппировка", BOF.Icons.GroupPanel);
            //ButtonGrouping.Click += new EventHandler(ButtonGrouping_Click);
            //FToolBar.Items.Add(ButtonGrouping);

            //FToolBar.GripStyle = ToolStripGripStyle.Visible;

            FForm.ResumeLayout();
        }
示例#2
0
        public virtual void PaintPanels(bool hasTree, bool hasEntity)
        {
            FForm.SuspendLayout();
            FForm.ContentPanel.Controls.Clear();
            Panel panel = FForm.ContentPanel;

            if (hasEntity)
            {
                contLstEnt                  = new SplitContainer();
                contLstEnt.BorderStyle      = BorderStyle.None;
                contLstEnt.SplitterDistance = 60;

                //contLstEnt.BackColor = Color.WhiteSmoke;
                contLstEnt.Panel1.BackColor = Color.WhiteSmoke;
                contLstEnt.Panel2.BackColor = Color.WhiteSmoke;
                panel.Controls.Add(contLstEnt);
                contLstEnt.Dock        = DockStyle.Fill;
                contLstEnt.Name        = "contLstEnt";
                contLstEnt.Orientation = Orientation.Horizontal;
                panel        = contLstEnt.Panel1;
                _PanelEntity = contLstEnt.Panel2;
            }
            if (hasTree)
            {
                splitTL                  = new SplitContainer();
                splitTL.BorderStyle      = BorderStyle.None;
                splitTL.Panel1.BackColor = Color.WhiteSmoke;
                splitTL.Panel2.BackColor = Color.WhiteSmoke;
                //splitTL.BackColor = Color.White;
                panel.Controls.Add(splitTL);
                splitTL.Orientation     = Orientation.Vertical;
                splitTL.Dock            = DockStyle.Fill;
                splitTL.Panel1Collapsed = true;
                panel      = splitTL.Panel2;
                _PanelTree = splitTL.Panel1;

                ToolStripButton ButtonGrouping = new ToolStripButton("Группировка", BOF.Icons.GroupPanel);
                ButtonGrouping.Click += new EventHandler(ButtonGrouping_Click);
                FToolBar.Items.Add(ButtonGrouping);
            }

            FToolBar.GripStyle = ToolStripGripStyle.Hidden;

            _PanelList = panel;
            FForm.ResumeLayout();
        }