Exemple #1
0
        public void Refresh()
        {
            RmGroup group = null;
            RdRow   row   = null;

            this.Clear();
            this._rep = base.Builder.Template;
            for (int i = 1; i <= this._rep.Rows.RowCount; i++)
            {
                row = this._rep.Rows[i];
                bool flag = row.RowType == RdRowType.rtGroupHeader || row.RowType == RdRowType.rtGroupFooter;
                if (flag)
                {
                    group = null;
                    foreach (KeyValuePair <int, RmGroup> obj in this.m_items)
                    {
                        bool flag2 = obj.Value.SameGroup(row.DataSet, row.GroupBy);
                        if (flag2)
                        {
                            group = obj.Value;
                            break;
                        }
                    }
                    bool flag3 = group == null;
                    if (flag3)
                    {
                        group = new RmGroup(this);
                        group.SetGroupBy(row.DataSet, row.GroupBy);
                        this.m_items.Add(this.m_items.Count, group);
                    }
                    bool flag4 = row.RowType == RdRowType.rtGroupHeader;
                    if (flag4)
                    {
                        group.Header.Add(group.Header.Count, row);
                    }
                    else
                    {
                        bool flag5 = row.RowType == RdRowType.rtGroupFooter;
                        if (flag5)
                        {
                            group.Footer.Add(group.Footer.Count, row);
                        }
                    }
                }
            }
        }
Exemple #2
0
 public RmGroupItem(RmGroup group)
 {
     this.m_group = group;
 }