Esempio n. 1
0
        public static void GenerateBytesByExcel(string excelFloder, string bytesFloder, int readMask = 0x7FFFFFFF)
        {
            if (!Directory.Exists(bytesFloder))
            {
                Directory.CreateDirectory(bytesFloder);
            }

            ReadALLExcelSheets(excelFloder);
            foreach (var excelSheet in mExcelSheetCaches.Values)
            {
                var    translator = new TranslatorTable(excelSheet, readMask);
                string byte_path  = Path.Combine(bytesFloder, translator.sheetName + ".byte");
                File.WriteAllBytes(byte_path, translator.ToDataEntryBytes());
            }
        }
        public static DataEntryCache ToTableCache(ExcelWorksheet excelSheet, int readMask, Type type)
        {
            TranslatorTable table = new TranslatorTable(excelSheet, readMask);

            return(ToTableCache(table.ToDataEntryBytes(), type));
        }