Changeset 936


Ignore:
Timestamp:
5/1/2009 1:01:30 AM (6 years ago)
Author:
lowjoel
Message:

Replaced the LanguageManager? usage paradigm to be that of a static class since we only have one staic function GetAll?

Location:
branches/eraser6/Manager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Language.cs

    r916 r936  
    104104    /// A class managing all plugins dealing with languages. 
    105105    /// </summary> 
    106     public class LanguageManager 
     106    public static class LanguageManager 
    107107    { 
    108108        /// <summary> 
  • branches/eraser6/Manager/Manager.cs

    r932 r936  
    3939 
    4040            EntropySourceManager = new EntropySourceManager(); 
    41             LanguageManager = new LanguageManager();  
    4241            PRNGManager = new PrngManager(); 
    4342            ErasureMethodManager = new ErasureMethodManager(); 
     
    8281 
    8382        /// <summary> 
    84         /// Global instance of the Language Manager. 
    85         /// </summary> 
    86         internal LanguageManager LanguageManager; 
    87  
    88         /// <summary> 
    8983        /// The global instance of the Erasure method manager. 
    9084        /// </summary> 
     
    10094        /// Manager. This is just shorthand for the local classes. 
    10195        /// </summary> 
    102         public ManagerSettings Settings 
     96        public static ManagerSettings Settings 
    10397        { 
    10498            get 
    10599            { 
    106                 return new ManagerSettings(); 
     100                if (settingsInstance == null) 
     101                    settingsInstance = new ManagerSettings(); 
     102                return settingsInstance; 
    107103            } 
    108104        } 
     105 
     106        /// <summary> 
     107        /// The singleton instance for <see cref="Settings"/>. 
     108        /// </summary> 
     109        private static ManagerSettings settingsInstance; 
    109110 
    110111        /// <summary> 
Note: See TracChangeset for help on using the changeset viewer.