void _pluginService_PluginLoaded(object sender, PluginLoadedEventArgs e) { if (e.Plugin.PluginName == "TunerPlugin") { if (TunerPlugin == null) { TunerPlugin = e.Plugin; } else { TunerPlugin = null; } return; } if (e.Plugin.PluginName == "FFTViewerPlugin") { FFTPlugin = e.Plugin; return; } if(e.Plugin.PluginName == "AchievementsPlugin") { Window w = new Window(); w.Content = e.Plugin.GetVisualContent(); w.SizeToContent = SizeToContent.WidthAndHeight; w.Left = 0; w.Top = 0; w.ShowDialog(); w.Content = null; return; } CurrentPlugin = e.Plugin; }
void _pluginService_PluginLoaded(object sender, PluginLoadedEventArgs e) { CurrentPlugin = e.Plugin; }