Example #1
0
        protected void MakeOneRDataSource(TDataSource row)
        {
            var rRow = new RDataSource <TDataSource>();

            rRow.Data  = row;
            rRow.RData = (from m in MyMark.Parse(row)
                          select new ReflectionCell <TDataSource>
            {
                Model = m
            }.ApplyConditions(RConditions))
                         .ToList();

            RDataSource.Add(rRow);
        }
Example #2
0
        protected void MakeAllRDataSource()
        {
            RDataSource = new List <RDataSource <TDataSource> >();
            foreach (var row in DataSource)
            {
                var rRow = new RDataSource <TDataSource>();
                rRow.Data  = row;
                rRow.RData = MyMark.Parse(row).Select(m =>
                                                      new ReflectionCell <TDataSource>
                {
                    Model = m
                }.ApplyConditions(RConditions)).ToList();

                RDataSource.Add(rRow);
            }
        }