mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-23 11:20:05 +02:00
Json importer ready
This commit is contained in:
1 parent
ccc5c768b3
commit
26e469d69d
15 files changed
+971
-9
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable enable
|
||||
namespace DataImporterTool.Dialogs
|
||||
{
|
||||
public class DialogService : IDialogService
|
||||
{
|
||||
public string? ChooseFolder()
|
||||
{
|
||||
using (var fbd = new FolderBrowserDialog())
|
||||
{
|
||||
var result = fbd.ShowDialog();
|
||||
if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
|
||||
{
|
||||
return fbd.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void ShowWarning(string warningMessage)
|
||||
{
|
||||
MessageBox.Show(warningMessage, "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user