private void button8_Click(object sender, RoutedEventArgs e) { try { //P-Analysis --------------------------------- checkSaveSub.IsChecked = true; checkSample.IsChecked = false; doTransform(0); sub.Close(); //Concat Sub files & export --------------------------------- List <string> concat_txt = TheTool.concatFile_OWS(sub_t.list_fileSave, true, 2); string path_saveFolder = TheURL.totalView_path_saveRoot + @"[NEu]\" + sub_t.getSubSubFolder(); TheTool.Folder_CreateIfMissing(path_saveFolder); string path_concatFile = path_saveFolder + @"\concat.csv"; TheTool.exportFile(concat_txt, path_concatFile, false); //Learn MinMax & export --------------------------------- TheMinMaxNormaliz.getDataTable(path_concatFile); TheMinMaxNormaliz.buildMinMax_Euclidian_Table(); TheTool.export_dataTable_to_CSV(path_saveFolder + @"\minmax.csv", TheMinMaxNormaliz.dt_MinMax_Euclidian); //-------------------- doTransform(1); sub.confirmOnClose = true; } catch { } }
//=========================================== private void button7_Click(object sender, RoutedEventArgs e) { List <string> filePath_list = TheTool.dataTable_getList_fromColumn(dataTable, col_path); int skip = TheTool.getInt(txtSkipConcat); List <string> concat_txt = new List <string>(); if (checkOWSconcat.IsChecked.Value) { concat_txt = TheTool.concatFile_OWS(filePath_list, true, skip); } else { concat_txt = TheTool.concatFile(filePath_list, true, skip); } TheTool.exportFile(concat_txt, TheURL.url_saveFolder + @"concat.csv", true); }