Ejemplo n.º 1
0
        private void initializeOracle()
        {
            String basePath            = getDataFileBasePath();
            string pathName            = basePath + "\\" + ORACLE_DATA_FILENAME;
            SimpleSpreadsheetReader sr = CsvExcelReader.loadSpreadsheet(pathName);

            //excelReader = TestExcelReader.loadSpreadsheet(pathName, password);
            oracle = new PuzzleOracle(sr);
            if (!oracle.isSourceEncrypted)
            {
                MessageBox.Show(this, "ORACLE DATA FILE IS ***UNENCRYPTED****", "WARNING WARNING WARNING");
            }
            oracle.writeCsvFile(basePath, true);

            // WARNING - writeToFile(false) writes out the decrypted contents!
            // WARNING - do not enable this in the production build!
            // MessageBox.Show(this, "WRITING UNENCRYPTED DATA", "WARNING", MessageBoxButtons.OKCancel);
            //oracle.writeCsvFile(basePath, false);
        }