public void openConfigTool() { var locateProjectFile = new LocateFileProject(); configPath = locateProjectFile.returnConfigFilePath(); var configTool = new LayerConfigEditor.MainWindow(); configTool.MainViewModel.configFilePath = configPath; configTool.MainViewModel.ReloadConfig(); configTool.ShowDialog(); var configToolVM = configTool.MainViewModel; if (configToolVM.configSelected) { configPath = configToolVM.configFilePath; var writer = new WriteXml(); writer.UpdateConfigPath(configPath); var configWriter = new ConfigFileWriter(); configWriter.writeConfig(configPath, configToolVM.LayerFilterList); } }
public void testLayerConfigEditBus2() { var configPath = @"O:\A005000\A009727\BUSP 2\3.7 Tegninger\Kladd\FRTE\BUS2.txt"; var configTool = new LayerConfigEditor.MainWindow(); configTool.MainViewModel.configFilePath = configPath; configTool.MainViewModel.ReloadConfig(); configTool.ShowDialog(); }