private AnalyzerDatabaseSettings EmptySettings() { AnalyzerDatabaseSettings settings = new AnalyzerDatabaseSettings(); XmlSerialize <AnalyzerDatabaseSettings> .InitEmptyProperties(settings); settings.ScienceDirectAndScopusApiKey = ""; settings.SpringerApiKey = ""; settings.StartOnLogin = true; settings.SavingPublicationPath = LocalizationSettingsService.DefaultSavingLocalizationPublicationsPath; if (!ZetaLongPaths.ZlpIOHelper.DirectoryExists(LocalizationSettingsService.ProgramDataApplicationDirectory)) { ZetaLongPaths.ZlpIOHelper.CreateDirectory(LocalizationSettingsService.ProgramDataApplicationDirectory); } XmlSerialize <AnalyzerDatabaseSettings> .Serialize(settings, LocalizationSettingsService.AnalyzerDatabaseConfigPath); return(settings); }
private AnalyzerDatabaseStatistics EmptyStatistics() { AnalyzerDatabaseStatistics statistics = new AnalyzerDatabaseStatistics(); XmlSerialize <AnalyzerDatabaseStatistics> .InitEmptyProperties(statistics); statistics.ScienceDirectCount = 0; statistics.ScopusCount = 0; statistics.SpringerCount = 0; statistics.IeeeXploreCount = 0; statistics.DuplicateCount = 0; statistics.PublicationsDownloadCount = 0; statistics.SumCount = 0; if (!ZetaLongPaths.ZlpIOHelper.DirectoryExists(LocalizationStatisticsService.ProgramDataApplicationDirectory)) { ZetaLongPaths.ZlpIOHelper.CreateDirectory(LocalizationStatisticsService.ProgramDataApplicationDirectory); } XmlSerialize <AnalyzerDatabaseStatistics> .Serialize(statistics, LocalizationStatisticsService.AnalyzerDatabaseStatisticsPath); return(statistics); }