Old data importer tool is ready

This commit is contained in:
Mikhail Shabanov committed 2021-01-05 10:27:21 +01:00
1 parent 26e469d69d
commit 9b9f2b141e
13 files changed
+667 -13

No files matched your search

@@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using AutoMapper;
using Microsoft.Extensions.DependencyInjection;
@@ -34,7 +33,7 @@ namespace DataImporterTool.Importer
string folderPath,
string[] accountsFiles,
string[] tankFiles,
IProgress<ImportProgress> progress)
IProgress<FileImportProgress> progress)
{
if (accountsFiles == null || tankFiles == null || accountsFiles.Length == 0 || accountsFiles.Length != tankFiles.Length)
{
@@ -49,7 +48,7 @@ namespace DataImporterTool.Importer
Path.Combine(folderPath, accountsFiles[i]),
Path.Combine(folderPath, tankFiles[i]));
var p = new ImportProgress
var p = new FileImportProgress
{
Progress = 100 * (i+1) / accountsFiles.Length,
TankFileConverted = tankFiles[i],