public ContextDatаGame()
        {
            Downloader downloader = new Downloader("GameData.csv");

            Thread.Sleep(250);
            Singleton = DataSingleton.getInstance();
        }
Beispiel #2
0
 public static DataSingleton getInstance()
 {
     if (instance == null)
     {
         lock (syncRoot)
         {
             if (instance == null)
             {
                 instance = new DataSingleton();
             }
         }
     }
     return(instance);
 }
 public ContextCurrentForm()
 {
     Singleton = DataSingleton.getInstance();
 }
Beispiel #4
0
 public ContextDatabaseForm()
 {
     Singleton  = DataSingleton.getInstance();
     connection = new SQLiteConnection(ConnectionString);
 }
Beispiel #5
0
 public ContextPhysicalPC()
 {
     Singleton  = DataSingleton.getInstance();
     connection = new SQLiteConnection(ConnectionString);
 }
Beispiel #6
0
 public ContextComputerXML()
 {
     Singleton  = DataSingleton.getInstance();
     connection = new SQLiteConnection(ConnectionString);
 }
Beispiel #7
0
 public DataController(IStrategyData strategy)
 {
     Singleton = DataSingleton.getInstance();
     Strategy  = strategy;
 }