Esempio n. 1
0
        private void AddBand(BandBase band, BandStructureNode root)
        {
            if (band == null)
            {
                return;
            }
            BandStructureNode node = root.Add();

            node.AddBand(band);
        }
Esempio n. 2
0
 private void EnumBand(BandBase band, BandStructureNode root)
 {
     if (band is DataBand)
     {
         EnumDataBand(band as DataBand, root);
     }
     else if (band is GroupHeaderBand)
     {
         EnumGroupHeaderBand(band as GroupHeaderBand, root);
     }
 }
Esempio n. 3
0
 private void EnumNodes(List <BandStructureNode> list, BandStructureNode root)
 {
     if (root != FRoot)
     {
         list.Add(root);
     }
     foreach (BandStructureNode node in root.ChildNodes)
     {
         EnumNodes(list, node);
     }
 }
Esempio n. 4
0
        private void EnumGroupHeaderBand(GroupHeaderBand band, BandStructureNode root)
        {
            if (band == null)
            {
                return;
            }
            BandStructureNode node = root.Add();

            node.AddBand(band.Header);
            node.AddBand(band);
            EnumGroupHeaderBand(band.NestedGroup, node);
            EnumDataBand(band.Data, node);
            node.AddBand(band.GroupFooter);
            node.AddBand(band.Footer);
        }
Esempio n. 5
0
            public BandStructureNode Add()
            {
                BandStructureNode result = new BandStructureNode();

                ChildNodes.Add(result);
                result.Parent = this;
                if (Left == -1)
                {
                    result.Left = 7;
                }
                else
                {
                    result.Left = Left + 8;
                }
                return(result);
            }
Esempio n. 6
0
        private void EnumDataBand(DataBand band, BandStructureNode root)
        {
            if (band == null)
            {
                return;
            }
            BandStructureNode node = root.Add();

            node.AddBand(band.Header);

            node.AddBand(band);
            foreach (BandBase b in band.Bands)
            {
                EnumBand(b, node);
            }

            node.AddBand(band.Footer);
        }
Esempio n. 7
0
        public BandStructure(ReportPageDesigner pd)
        {
            FPageDesigner = pd;
            FRoot         = new BandStructureNode();

            btnConfigure           = new Button();
            btnConfigure.Height    = 24;
            btnConfigure.Dock      = DockStyle.Top;
            btnConfigure.FlatStyle = FlatStyle.Flat;
            btnConfigure.FlatAppearance.BorderColor = SystemColors.ButtonFace;
            btnConfigure.FlatAppearance.BorderSize  = 0;
            btnConfigure.Font      = DrawUtils.Default96Font;
            btnConfigure.TextAlign = ContentAlignment.MiddleLeft;
            btnConfigure.Cursor    = Cursors.Hand;
            btnConfigure.Click    += new EventHandler(btnConfigure_Click);
            Controls.Add(btnConfigure);
            Localize();

            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
        }