Пример #1
0
 internal OdsParser(Tehthu t)
 {
     this.teh = t;
     this.file = t.getFile();
     OdsReaderWriter orw = new OdsReaderWriter();
     DataSet ds = orw.ReadOdsFile(file.FullName);
     dt = ds.Tables["Dictionary"];
     if(dt == null)
     {
         dt = ds.Tables["Sheet1"];
         if(dt == null)
         {
             dt = ds.Tables[0];
             if(dt == null)
             {
                 teh.putLogLine("Parser error: Couldn't find a spreadsheet containing the dictionary. The dictionary will be empty for this Tehthu session.");
                 return;
             }
         }
     }
 }