private static void ExportToExcel(RevisionData selected,
                                          int startRow, X.Worksheet ws, RevOrderMgr om)
        {
            int row = startRow;

            foreach (RevisionDataFields rdf in selected.GetEnumerable())
            {
                int col = 1;
                foreach (DataItems.DataEnum d in om.ColumnOrder.Iterate())
                {
                    ExportAnItem(rdf[d.DataIdx], d, row, col++, ws);
                }
                row++;
            }
        }
        private static List <List <string> > FormatTableData(RevisionData selected,
                                                             RevOrderMgr om)
        {
            // rows x columns
            List <List <string> > tableData = new List <List <string> >();

            foreach (RevisionDataFields rdf in selected.GetEnumerable())
            {
                List <string> rowData = new List <string>(new string[selected.Count]);

                foreach (DataItems.DataEnum d in om.ColumnOrder.itemize())
                {
                    rowData[d.DataIdx] = (string.Format(d.Display.FormatString,
                                                        rdf[d.DataIdx] ?? ""));
                }
                tableData.Add(rowData);
            }
            return(tableData);
        }
 public static IEnumerable <RevisionDataFields> IterateSelected()
 {
     return(_selected.GetEnumerable());
 }
 public static IEnumerable <RevisionDataFields> IterateRevisionData()
 {
     return(_masterRevData.GetEnumerable());
 }