private void RefreshUnits() { var process = new StatusProcess(); bool discoverResult = false; var discovery = new AssemblyDiscovery(); process.StartOperation(() => { discoverResult = discovery.DiscoverAppliedAssemblies(ConfigId()); }); process.EndOperation(); if (!discoverResult) { MessageBox.Show(string.Format("Не найдены прикладные сборки.\n\rКорректно укажите в App.config параметр AppliedAssemblies для указания местоположения прикладных сборок: \n\rТекущее значение параметра: {0}", AppDomain.CurrentDomain.BaseDirectory)); return; } ComboBoxScenarioIdentifier.Properties.Items.Clear(); ComboBoxScenarioIdentifier.Properties.Items.AddRange( ViewModelExtension.BuildScripts(discovery.SourceAssemblyList) .BuildImageComboBoxItems() .ToList()); }