Beispiel #1
0
 /// <summary>
 /// Creates a singleton of RecentDistro
 /// </summary>
 /// <param name="instantiate">Whether or not to instantiate</param>
 /// <returns>The RecentDistro instance</returns>
 public static RecentDistro GetInstance(bool instantiate)
 {
     if (Instance == null && instantiate)
     {
         Instance = new RecentDistro();
     }
     return Instance;
 }
Beispiel #2
0
 /// <summary>
 /// Clears the singleton instance
 /// </summary>
 public static void ClearInstance()
 {
     Instance = null;
 }