private void LoadFactory(Stream stream) { if (database == null) { stream.Position = 0; var reader = new ArchiveReader(); reader.Open(stream); database = reader.ReadDatabase(null); } }
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)); } }