コード例 #1
0
 public static BinaryStorage Get(BinarySerializationEngine<BinaryStorage> serializationEngine)
 {
     if (storage == null)
     {
         storage = new BinaryStorage();
         storage.binStorage = serializationEngine;
         try
         {
             storage.FolderLinks = storage.binStorage.Get().FolderLinks;
             storage.Settings = storage.binStorage.Get().Settings;
         }
         catch (NullReferenceException nex)
         {
             storage.FolderLinks = new List<FolderLink>();
             storage.Settings = new List<Setting>();
         }
     }
     return storage;
 }
コード例 #2
0
 public BinaryShortcutsRepository(BinaryStorage storage_)
 {
     storage = storage_;
 }
コード例 #3
0
 public BinarySettingsRepository(BinaryStorage storage_)
 {
     storage = storage_;
 }