private void refreshAvailableModules_Click(object sender, System.Windows.RoutedEventArgs e)
{
if (!Directory.Exists(ConfigurationPath))
{
statustextBlock.Text = "Not found " + ConfigurationPath;
return;
}
statustextBlock.Text = "Found " + ConfigurationPath;
listBoxAvailable.Items.Clear();
foreach (var cfg in Directory.EnumerateFiles(ConfigurationPath, "*.cfg").Except(new[] { "Modules.cfg" }))
{
var name = Path.GetFileName(cfg);
listBoxAvailable.Items.Add(name);
}
}