Beispiel #1
0
 static TBSystem()
 {
     TBSystem system = (TBSystem)StorageSupport.RetrieveInformation(SingletonRelativeLocation, typeof(TBSystem));
     if(system == null)
     {
         system = CreateDefault();
         system.ID = "AAA";
         system.RelativeLocation = SingletonRelativeLocation;
         StorageSupport.StoreInformation(system);
     }
     currSystem = system;
 }
Beispiel #2
0
        static TBSystem()
        {
            TBSystem system = (TBSystem)StorageSupport.RetrieveInformation(SingletonRelativeLocation, typeof(TBSystem));

            if (system == null)
            {
                system    = CreateDefault();
                system.ID = "AAA";
                system.RelativeLocation = SingletonRelativeLocation;
                StorageSupport.StoreInformation(system);
            }
            currSystem = system;
        }