2020-12-29 19:23:02 +01:00
|
|
|
using System;
|
2021-01-05 10:27:21 +01:00
|
|
|
using System.Collections.Generic;
|
2020-12-29 19:23:02 +01:00
|
|
|
|
|
|
|
|
namespace DataImporterTool
|
|
|
|
|
{
|
|
|
|
|
public interface IMainFormView
|
|
|
|
|
{
|
|
|
|
|
string MongoDbConnectionString { get; set; }
|
|
|
|
|
|
|
|
|
|
string JsonFolderPath { get; set; }
|
|
|
|
|
|
|
|
|
|
string StatusInformation { get; set; }
|
|
|
|
|
|
2021-01-05 10:27:21 +01:00
|
|
|
public string SqlConnectionString { get; set; }
|
|
|
|
|
|
2020-12-29 19:23:02 +01:00
|
|
|
void ShowJsonFiles(string[] allJsonFiles);
|
|
|
|
|
|
|
|
|
|
void ShowJsonAccountFiles(string[] accountJsonFiles);
|
|
|
|
|
|
|
|
|
|
void ShowJsonTankFiles(string[] tankJsonFiles);
|
|
|
|
|
|
|
|
|
|
void ClearLog();
|
|
|
|
|
|
|
|
|
|
void AppendLogRow(string logInfo);
|
|
|
|
|
|
|
|
|
|
void SetProcessPercentage(int percentage);
|
|
|
|
|
|
2021-01-05 10:27:21 +01:00
|
|
|
void ShowSqlAccounts(Dictionary<long, string> accounts);
|
|
|
|
|
|
2020-12-29 19:23:02 +01:00
|
|
|
event Action OpenJsonFolderClick;
|
|
|
|
|
|
|
|
|
|
event Action<string[]> AddFilesAsAccountsInfoList;
|
|
|
|
|
|
|
|
|
|
event Action<string[]> AddFilesAsTanksInfoList;
|
|
|
|
|
|
|
|
|
|
event Action StartJsonConvert;
|
2021-01-05 10:27:21 +01:00
|
|
|
|
|
|
|
|
event Action FetchSqlAccounts;
|
|
|
|
|
|
|
|
|
|
event Action<long[]> StartSqlImport;
|
2020-12-29 19:23:02 +01:00
|
|
|
}
|
|
|
|
|
}
|