Ignore:
Timestamp:
04/28/10 08:26:57 (5 years ago)
Author:
lowjoel
Message:

Allow different types of loading policies for plugins. The old CoreAttribute? has been superseded by the LoadingPolicyAttribute?. This allows us to specify the loading policy for plugins such as BlackBox? which will have the same strong name as the main program, an Authenticode signature, but should not be loaded by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser/Eraser/SettingsPanel.cs

    r1802 r1981  
    7777            //Visually display the other metadata associated with the assembly 
    7878            item.ImageIndex = e.Instance.AssemblyAuthenticode == null ? -1 : 0; 
    79             item.Group = e.Instance.IsCore ? pluginsManager.Groups[0] : 
    80                 pluginsManager.Groups[1]; 
     79            item.Group = e.Instance.LoadingPolicy == LoadingPolicy.Core ? 
     80                pluginsManager.Groups[0] : pluginsManager.Groups[1]; 
    8181            item.SubItems.Add(e.Instance.Assembly.GetName().Version.ToString()); 
    8282            item.SubItems.Add(e.Instance.Assembly.Location); 
     
    308308            ListViewItem item = pluginsManager.Items[e.Index]; 
    309309            PluginInstance instance = (PluginInstance)item.Tag; 
    310             if (instance.IsCore) 
     310            if (instance.LoadingPolicy == LoadingPolicy.Core) 
    311311                e.NewValue = CheckState.Checked; 
    312312        } 
Note: See TracChangeset for help on using the changeset viewer.