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; }
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; }