private void OnPluginSelected(PluginLoader pluginLoader) { if (_centerLoadableView == null) { Dispatch("Attach Plugin", _centerLoadableView = new CenterLoadableView() { DataContext = this }); } foreach (var loader in PluginLoaders) { loader.PluginSelected = false; } pluginLoader.PluginSelected = true; View = pluginLoader.ViewPlugin; }
public void OnForceLoadPlugin(string pluginName) { var pluginLoader = PluginLoaders.First(plugin => plugin.PluginName == pluginName); if (_centerLoadableView == null) { Dispatch("Attach Plugin", _centerLoadableView = new CenterLoadableView() { DataContext = this }); } foreach (var loader in PluginLoaders) { loader.PluginSelected = false; } pluginLoader.PluginSelected = true; View = pluginLoader.ViewPlugin; }