public PluginManager(PluginCore core, MainWindow window, Type type) { MainWindow = window; PluginCore = core; pluginType = type; plugin = Activator.CreateInstance(type) as Plugin; plugin.Init(this); }