private void ModulesSimulation(object sender, RoutedEventArgs e) { OpenFileDialog openFileDialog = new OpenFileDialog(); if (openFileDialog.ShowDialog() == true) { var Areas = FHXBulkEditSimulation.AreasModules(File.ReadAllText(openFileDialog.FileName)); if (openFileDialog.ShowDialog() == true) { FHXBulkEditSimulation.GenerateFiles(Areas, openFileDialog.FileName); } } }
public static void ExtractModules(string file) { var Areas = FHXBulkEditSimulation.AreasModules(File.ReadAllText(file)); FHXBulkEditSimulation.GenerateFiles(Areas, @"D:\FHX\Simul"); }