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; }
public BinaryShortcutsRepository(BinaryStorage storage_) { storage = storage_; }
public BinarySettingsRepository(BinaryStorage storage_) { storage = storage_; }