示例#1
0
        private void RemoveSelectedItems()
        {
            var plugins = GetSelectedPlugins();

            try
            {
                foreach (PluginInstaller.PluginInfo p in plugins)
                {
                    PluginInstaller.RemovePlugin(p);
                    removedPlugins.Add(p);
                }

                if (plugins.Any())
                {
                    LoadAllPlugins();
                }

                MessageBoxEx.Show(Plugin_Installer_Resources.MsgBox_PluginInstalled, Plugin_Installer_Resources.MsgBox_PluginInstalled_Titel, MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            catch (InvalidOperationException ex)
            {
                MessageBoxEx.Show(ex.Message, Plugin_Installer_Resources.MsgBox_PluginInstalled_Error_Titel, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
示例#2
0
 private void LoadInstalledPlugins()
 {
     this.LoadPlugins(ListViewEx_Plugins.Groups["Lvg_Installed"], PluginInstaller.GetAllPlugins().Where(n => !removedPlugins.Where(b => b.Plugin == n.Plugin).Any()));
 }