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/Manager/Manager.cs

    r557 r561  
    3232    public class ManagerLibrary : IDisposable 
    3333    { 
    34         public ManagerLibrary(Settings settings) 
     34        public ManagerLibrary(SettingsManager settings) 
    3535        { 
    3636            Instance = this; 
    37             Settings = settings; 
     37            SettingsManager = settings; 
    3838 
    3939            EntropySourceManager = new EntropySourceManager(); 
     
    4848            EntropySourceManager.Poller.Abort(); 
    4949            Host.Dispose(); 
    50             Settings.Save(); 
     50            SettingsManager.Save(); 
    5151            Instance = null; 
    5252        } 
     
    7878 
    7979        /// <summary> 
    80         /// Global instance of the Settings object. 
     80        /// Global instance of the Settings manager. 
    8181        /// </summary> 
    82         public Settings Settings; 
     82        public SettingsManager SettingsManager; 
     83 
     84        /// <summary> 
     85        /// Gets the settings object representing the settings for the Eraser 
     86        /// Manager. This is just shorthand for the local classes. 
     87        /// </summary> 
     88        public ManagerSettings Settings 
     89        { 
     90            get 
     91            { 
     92                return new ManagerSettings(); 
     93            } 
     94        } 
    8395 
    8496        /// <summary> 
Note: See TracChangeset for help on using the changeset viewer.