Пример #1
0
        /// <summary>
        /// Pre load the plugin specified in the configuration file
        /// </summary>
        private void Loadplugin()
        {
            if (strategyLoadPatern != null && strategyLoadPatern.CustomLibrary != null && strategyLoadPatern.CustomLibrary != "")
            {
                m_plugin = new Lignite.Plugin.PluginManager(Directory.GetCurrentDirectory() + "\\" + strategyLoadPatern.CustomLibrary, strategyLoadPatern.CustomLibraryConfigSection);

                if (m_plugin.Settings.hasForm)
                {
                    btnShowPluginForm.Visible = true;
                }
                else
                {
                    btnShowPluginForm.Visible = false;
                }
            }
        }
Пример #2
0
        /// <summary>
        /// Pre load the plugin specified in the configuration file
        /// </summary>
        private void Loadplugin()
        {
            if (strategyLoadPatern != null && strategyLoadPatern.CustomLibrary != null && strategyLoadPatern.CustomLibrary != "")
            {
                m_plugin = new Lignite.Plugin.PluginManager(Directory.GetCurrentDirectory() + "\\" + strategyLoadPatern.CustomLibrary, strategyLoadPatern.CustomLibraryConfigSection);

                if (m_plugin.Settings.hasForm)
                    btnShowPluginForm.Visible = true;
                else
                    btnShowPluginForm.Visible = false;
            }
        }