Exemple #1
0
        public void RunPluginApplication()
        {
            IHostApplicationInternals pluginApp = HostApplicationFactory.GetInstance();

            //pluginApp.LanguageCode = UserLanguage.Get().LangId;
            pluginApp.Run();
        }
Exemple #2
0
 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));
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 public static void SetInstance(IHostApplicationInternals hostApplicationInternals)
 {
     _pluginApplication = hostApplicationInternals;
 }
Exemple #5
0
 public void SetAutoStartPlugin(string autoStartPluginId)
 {
     IHostApplicationInternals pluginApp = HostApplicationFactory.GetInstance();
     //   pluginApp.AutoStartPluginId = autoStartPluginId;
 }