Exemplo n.º 1
0
        private InstanceReportRow CreateStyleRow( int depth, CommandIterator iterator, object memberValue )
        {
            InstanceReportRow groupedRow = new InstanceReportRow();
            groupedRow.EmbedRequirements = new ColumnRowRequirement( iterator );
            groupedRow.EmbedRequirements.Add( iterator, memberValue );
            groupedRow.IsAbstractGroupTitle = true;
            groupedRow.GenerateEmbedLabel( groupedRow.EmbedRequirements, true );
            groupedRow.Level = depth;

            for( int c = 0; c < this.Columns.Count; c++ )
                groupedRow.Cells.Add( new Cell( this.Columns[ c ].Id ) );

            return groupedRow;
        }
Exemplo n.º 2
0
        private static void ShowLastNonDefaultLabel( int depth, Stack<CommandIterator> iteratorHierarchy, InstanceReportRow row )
        {
            Segment ciSegment = null;
            CommandIterator ciSave = null;
            CommandIterator[] ciList = iteratorHierarchy.ToArray();
            foreach( CommandIterator ci in ciList )
            {
                if( depth > 0 )
                    depth--;

                Segment seg = row.EmbedRequirements.GetMemberKeyValue( ci ).Value as Segment;
                if( seg != null && !seg.IsDefaultForEntity )
                {
                    ciSegment = seg;
                    ciSave = ci;
                    break;
                }
            }

            if( ciSave != null )
            {
                row.Level = depth;
                row.GroupTotalSegment = ciSegment;
                row.EmbedRequirements.ShowLabel( ciSave, ciSave.SelectionString );
                row.GenerateEmbedLabel();
            }
        }