private void AddBand(BandBase band, BandStructureNode root) { if (band == null) { return; } BandStructureNode node = root.Add(); node.AddBand(band); }
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); } }
private void EnumNodes(List <BandStructureNode> list, BandStructureNode root) { if (root != FRoot) { list.Add(root); } foreach (BandStructureNode node in root.ChildNodes) { EnumNodes(list, node); } }
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); }
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); }
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); }
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); }