Beispiel #1
0
        private void ShowPlugin(String name)
        {
            //If the Window is still open, push it in the foreground
            if (_dictPluginWindows.ContainsKey(name))
            {
                _dictPluginWindows[name].Focus();
                return;
            }

            //Set the dockstyle of the plugin to fill, to fill up the space provided
            //plugin.Instance.MainInterface. = DockStyle.Fill;

            //Find the plugin on which was clicked
            if (APluginManager.GetPluginByName(name) == null)
            {
                new Error("Can't find Plugin " + name, false, null);
            }
            else
            {
                Plugin aPluginWindow = new Plugin(APluginManager.GetPluginByName(name).Instance);

                // apply skin for plugins
                aPluginWindow.ApplyPluginSkin(_currentSkin, AConfiguration, _anAppHandle);
                aPluginWindow.Closed += APluginWindowClosed;

                _dictPluginWindows.Add(name, aPluginWindow);
                aPluginWindow.Show();
            }
        }