public void RunPluginApplication() { IHostApplicationInternals pluginApp = HostApplicationFactory.GetInstance(); //pluginApp.LanguageCode = UserLanguage.Get().LangId; pluginApp.Run(); }
public void SetApplicationInfo() { IHostApplicationInternals pluginApp = HostApplicationFactory.GetInstance(); //IApplicationInfo appInfo = pluginApp.GetApplicationInfo(); //CommandExecutor.ExecuteNoLog(new CommandSetApplicationName(appInfo.Name)); //CommandExecutor.ExecuteNoLog(new CommandSetApplicationVersion(appInfo.Version)); //CommandExecutor.ExecuteNoLog(new CommandSetApplicationDate(appInfo.Date)); }
public static IHostApplicationInternals CreateInstance(string startupPath, string appConfigFile, string configId) { if (_pluginApplication != null) { throw new PluginHostException("Plugin Host exists already."); } if (_pluginApplication == null) { _pluginApplication = new InternalHostApplication { StartupPath = startupPath, AppConfigFile = appConfigFile, // ConfigId = configId, // MenuRootNode = null }; } return(_pluginApplication); }
public static void SetInstance(IHostApplicationInternals hostApplicationInternals) { _pluginApplication = hostApplicationInternals; }
public void SetAutoStartPlugin(string autoStartPluginId) { IHostApplicationInternals pluginApp = HostApplicationFactory.GetInstance(); // pluginApp.AutoStartPluginId = autoStartPluginId; }