예제 #1
0
        protected void AddDisabledPlugin(string folder)
        {
            NotLoadedPlugin plugin = new NotLoadedPlugin();

            plugin.FriendlyName = FileManager.RemovePath(folder);
            if (plugin.FriendlyName.EndsWith("/") || plugin.FriendlyName.EndsWith("\\"))
            {
                plugin.FriendlyName = plugin.FriendlyName.Substring(0, plugin.FriendlyName.Length - 1);
            }

            PluginContainer container = new PluginContainer(plugin);

            container.AssemblyLocation = folder + "/unknown.dll";

            mPluginContainers.Add(plugin, container);
            container.IsEnabled = false;

            // don't do any startup or anything
        }
예제 #2
0
        protected void AddDisabledPlugin(string folder)
        {
            NotLoadedPlugin plugin = new NotLoadedPlugin();
            plugin.FriendlyName = FileManager.RemovePath(folder);
            if(plugin.FriendlyName.EndsWith("/") || plugin.FriendlyName.EndsWith("\\"))
            {
                plugin.FriendlyName = plugin.FriendlyName.Substring(0, plugin.FriendlyName.Length - 1);
            }

            PluginContainer container = new PluginContainer(plugin);

            container.AssemblyLocation = folder + "/unknown.dll";

            mPluginContainers.Add(plugin, container);
            container.IsEnabled = false;

            // don't do any startup or anything
        }