Ignore:
Timestamp:
11/14/2008 8:20:48 AM (4 years ago)
Author:
lowjoel
Message:

Part one to fixing #32: replace the Dictionary object with the Settings object for plugin settings; The old Settings class is now the SettingsManager? class.
Also, since we are now using a generic Object, I've implemented a few helper class (XXSettings) classes to allow for the concrete setting + type to be retrieved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/DefaultPlugins/EraseCustom.cs

    r493 r561  
    4646        internal static void RegisterAll() 
    4747        { 
    48             if (!DefaultPlugin.Settings.ContainsKey("EraseCustom")) 
     48            if (DefaultPlugin.Settings.EraseCustom == null) 
    4949                return; 
    5050 
    51             Dictionary<Guid, CustomErasureMethod> methods = (Dictionary<Guid, CustomErasureMethod>) 
    52                 DefaultPlugin.Settings["EraseCustom"]; 
     51            Dictionary<Guid, CustomErasureMethod> methods = 
     52                DefaultPlugin.Settings.EraseCustom; 
    5353            foreach (Guid guid in methods.Keys) 
    5454            { 
Note: See TracChangeset for help on using the changeset viewer.