Exemplo n.º 1
0
 public void LoadAll()
 {
     if (!Plugins.IsLoaded || (Plugins.WasLastLoadAdvanced != SettingsForm.AdvancedMode))
     {
         Plugins.ClearLoadedPlugins();
         Plugins.IsLoaded = true;
         Plugins.EnumeratePlugins();
         Plugins.LoadPlugins();
     }
     loadedPlugins.Clear();
     foreach (ItemTag tag in Plugins.LoadedPlugins)
     {
         loadedPlugins.Add(tag);
     }
     LoadSettings();
 }
Exemplo n.º 2
0
        public void LoadAll()
        {
            if (!Plugins.IsLoaded || (Plugins.WasLastLoadAdvanced != SettingsForm.AdvancedMode))
            {
                Plugins.ClearLoadedPlugins();
                Plugins.IsLoaded = true;
                Plugins.EnumeratePlugins();
                Plugins.LoadPlugins();
                pluginsLoadedOnPage = false;
            }

            if (!pluginsLoadedOnPage)
            {
                listViewPlugins.Items.Clear();
                foreach (ItemTag tag in Plugins.LoadedPlugins)
                {
                    LoadPluginImages(tag.expType, tag);
                }
                LoadSettings();
                PopulateListView();
                pluginsLoadedOnPage     = true;
                listViewPlugins.Sorting = SortOrder.Ascending;
            }
        }