コード例 #1
0
 /// <summary>
 /// Accessor method for the singleton class, returns a thread safe single instance of this class.
 /// </summary>
 /// <returns>A thread safe unique instance of the preferences class.</returns>
 public static Preferences getInstance()
 {
     if (uniqueInstance == null)
     {
         lock (syncLock)
         {
             uniqueInstance = new Preferences();
         }
     }
     return uniqueInstance;
 }
コード例 #2
0
 public PreferencesGUI()
 {
     InitializeComponent();
     current_Preferences = Preferences.getInstance();
 }