示例#1
0
        protected void CreateDetails(PanelBrick parentBrick, ref float actualHeight)
        {
            LoadData();
            XRDataRecordCollection actualCollection = GetActualDataCollection();

            for (int i = 0; i < actualCollection.Count; i++)
            {
                CreateRecordBrick(actualCollection[i], parentBrick, ref actualHeight);
            }
        }
        private XRDataRecordCollection CreateDesignRecords()
        {
            XRDataRecordCollection designRecords = new XRDataRecordCollection();

            for (int i = 0; i < 3; i++)
            {
                XRDataRecord currentRecord = new XRDataRecord(Grid);

                List <XRFieldHeader> visibleHeaders = Grid.VisibleHeaders;

                for (int j = 0; j < visibleHeaders.Count; j++)
                {
                    if (visibleHeaders[j].FieldType != null)
                    {
                        currentRecord[j] = visibleHeaders[j].FieldType.Name;
                    }
                }

                designRecords.Add(currentRecord);
            }

            return(designRecords);
        }