Esempio n. 1
0
        public void addRow(String[] line, data textDatabase)
        {
            DataTable table;

            table = textDatabase.getDataTable();
            table.Rows.Add(line[0], line[1], line[2], line[3], line[4], line[5], line[6], line[7], line[8], line[9], line[10], line[11], line[12], line[13], line[14], line[15]);
        }
Esempio n. 2
0
 public String buildStringForWriting(data table)
 {
     int rowCount = table.getDataTable().Rows.Count;
     String outputText = "";
     String finalOutputText = "";
     DataRow[] rows = table.getDataTable().Select();
     for (int i = 0; i < rows.Length; i++)
     {
         int j = 0;
         for (j = 0; j < 16; j++)
         {
             outputText = rows[i][j].ToString();
             finalOutputText = finalOutputText + outputText + '\t';
         }
         finalOutputText = finalOutputText + "\r\n";
     }
     return finalOutputText;
 }
Esempio n. 3
0
        public String buildStringForWriting(data table)
        {
            int    rowCount        = table.getDataTable().Rows.Count;
            String outputText      = "";
            String finalOutputText = "";

            DataRow[] rows = table.getDataTable().Select();
            for (int i = 0; i < rows.Length; i++)
            {
                int j = 0;
                for (j = 0; j < 16; j++)
                {
                    outputText      = rows[i][j].ToString();
                    finalOutputText = finalOutputText + outputText + '\t';
                }
                finalOutputText = finalOutputText + "\r\n";
            }
            return(finalOutputText);
        }
Esempio n. 4
0
 public Table(data database)
 {
     assignDatabaseToViewer(database.getDataTable());
     undoTable = createUndoTable();
     undoTypeTable = createUndoTypeTable();
 }
Esempio n. 5
0
 public void setViewer(data ParsedDataViewer)
 {
     databaseViewer = ParsedDataViewer.getDataTable();
     GlobalDay      = databaseViewer.Rows[0]["Day"].ToString();
 }
Esempio n. 6
0
 public void setViewerTotal(data ParsedData)
 {
     databaseViewerTotal = ParsedData.getDataTable();
 }
Esempio n. 7
0
 public Table(data database)
 {
     assignDatabaseToViewer(database.getDataTable());
     undoTable     = createUndoTable();
     undoTypeTable = createUndoTypeTable();
 }
Esempio n. 8
0
 public void setViewerTotal(data ParsedData)
 {
     databaseViewerTotal = ParsedData.getDataTable();
 }
Esempio n. 9
0
 public void setViewer(data ParsedDataViewer)
 {
     databaseViewer = ParsedDataViewer.getDataTable();
     GlobalDay = databaseViewer.Rows[0]["Day"].ToString();
 }
Esempio n. 10
0
 public void addRow(String[] line, data textDatabase)
 {
     DataTable table;
     table = textDatabase.getDataTable();
     table.Rows.Add(line[0], line[1], line[2], line[3], line[4], line[5], line[6], line[7], line[8], line[9], line[10], line[11], line[12], line[13], line[14], line[15]);
 }