Пример #1
0
 private void LoadFactory(Stream stream)
 {
     if (database == null)
     {
         stream.Position = 0;
         var reader = new ArchiveReader();
         reader.Open(stream);
         database = reader.ReadDatabase(null);
     }
 }
Пример #2
0
 private void LoadFactory(Stream stream)
 {
     if (database is null)
     {
         stream.Position = 0;
         var reader = new ArchiveReader();
         reader.Open(stream);
         database = reader.ReadDatabase(new PasswordProvider(ReaderOptions.Password));
     }
 }