//シートをCSVにコンバート void ConvertSheet(StringGridDictionaryKeyValue sheet, string folderPath) { string outPutPath = folderPath + "/"; if (AdvSettingDataManager.IsBootSheet(sheet.Name)) { ///起動用データは個別にコンバート bootSettingGrid = sheet.Grid; return; } else if (AdvSettingDataManager.IsScenarioSettingSheet(sheet.Name)) { ///シナリオ設定データは個別にコンバート scenarioSettingGrid = sheet.Grid; return; } else if (AdvSettingDataManager.IsSettingsSheet(sheet.Name)) { outPutPath += "Settings"; } else { scenarioSheetDictionary.Add(sheet); outPutPath += "Scenario"; } outPutPath += "/" + sheet.Key + extConvert; WriteFile(sheet.Grid, outPutPath); }
//シートをCSVにコンバート bool TryConvertSheet(StringGridDictionaryKeyValue sheet, out CsvInfo csvInfo) { csvInfo = null; string outPutPath; if (AdvSettingDataManager.IsBootSheet(sheet.Name)) { ///起動用データは個別にコンバート bootSettingGrid = sheet.Grid; return(false); } else if (AdvSettingDataManager.IsScenarioSettingSheet(sheet.Name)) { ///シナリオ設定データは個別にコンバート scenarioSettingGrid = sheet.Grid; return(false); } else if (AdvSettingDataManager.IsSettingsSheet(sheet.Name)) { outPutPath = "Settings"; } else { scenarioSheetDictionary.Add(sheet); outPutPath = "Scenario"; } csvInfo = new CsvInfo(sheet.Grid, outPutPath + "/" + sheet.Key); return(true); }