private static void ConnectAndLoadPlugins(IGameConnector[] connectors) { PluginsManager pluginManager = new PluginsManager(connectors); pluginManager.InitializePlugins(); pluginManager.Start(); }
private static void ConnectAndLoadPlugins(IGameConnector[] connectors) { KernelWrapper kernelWrapper = new KernelWrapper(); IEnumerable <ISimulatorDataSetVisitor> dataVisitors = kernelWrapper.GetAll <ISimulatorDataSetVisitor>(); PluginsManager pluginManager = new PluginsManager(connectors, dataVisitors); pluginManager.InitializePlugins(); pluginManager.Start(); }
static void Initialize() { try { Paths.Initialize(); PluginsManager.LoadPlugins(DocumentManager.PluginHost); PluginsManager.InitializePlugins(); Log.Initialize(); Themes.LoadPresets(); LanguageManager.InitializeLanguages(); Schemes.LoadHighlighters(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } //LanguageManager.SaveLanguage(Path.Combine(Paths.LanguagePath, "en-us.xml")); }