private IList <CellDefinition> CreatedArrangedCellDefinitions(IList <ReportParameter> parameters, out int numberOfRows, out int numberOfColumns)
        {
            int num  = 0;
            int num2 = 0;

            numberOfRows    = 1;
            numberOfColumns = 1;
            List <CellDefinition> list  = new List <CellDefinition>();
            List <CellInfo>       list2 = new List <CellInfo>();
            int num3 = 0;
            int num4 = 1;

            for (int i = 0; i < parameters.Count; i++)
            {
                ReportParameter parameter = parameters[i];
                bool            flag      = i < parameters.Count - 1 && !UpgradeImpl2010.IsParameterHidden(parameters[i + 1]);
                numberOfColumns = Math.Max(num2 + 1, numberOfColumns);
                numberOfRows    = num + 1;
                bool flag2 = false;
                bool flag3 = false;
                if (!UpgradeImpl2010.IsParameterHidden(parameters[i]))
                {
                    num3++;
                    flag2 = (num3 % 2 == 0);
                    if (flag2)
                    {
                        num4 = Math.Max(num2, num4);
                    }
                    flag3 = flag2;
                }
                else if (flag)
                {
                    flag3 = (num3 % 2 == 0);
                }
                list2.Add(new CellInfo
                {
                    RowIndex              = num,
                    ColumnIndex           = num2,
                    Parameter             = parameter,
                    IsSecondVisibleColumn = flag2
                });
                if (num2 == 7 || flag3)
                {
                    num++;
                    num2 = 0;
                }
                else
                {
                    num2++;
                }
            }
            foreach (CellInfo item2 in list2)
            {
                CellDefinition item = this.CreateCellDefinition(item2.Parameter, item2.RowIndex, item2.IsSecondVisibleColumn ? num4 : item2.ColumnIndex);
                list.Add(item);
            }
            return(list);
        }
Пример #2
0
        public static void Upgrade(XmlReader xmlReader, Stream outStream, bool throwUpgradeException)
        {
            UpgradeImpl2010 upgradeImpl = new UpgradeImpl2010();

            upgradeImpl.Upgrade(xmlReader, outStream);
        }