Exemplo n.º 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;
 }
Exemplo n.º 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;
        }