[fix:] naming window showed nothing
This commit is contained in:
+5
-5
@@ -194,7 +194,7 @@ public partial class MainWindow : Window
|
||||
private async void StartCombine(Uri path)
|
||||
{
|
||||
MakeCalcManVisible();
|
||||
var addresses = DataImport.ImportKasAddressList(path);
|
||||
var addresses = await DataImport.ImportKasAddressList(path);
|
||||
var progressWindow = new ProgressWindow();
|
||||
var address_list = new List<KasAddressList> { addresses.Item2 };
|
||||
|
||||
@@ -216,7 +216,7 @@ public partial class MainWindow : Window
|
||||
if (file == null) return;
|
||||
|
||||
//filePath = file[0].Path;
|
||||
foreach (var f in file) address_list.Add(DataImport.ImportKasAddressList(f.Path).Item2);
|
||||
foreach (var f in file) address_list.Add((await DataImport.ImportKasAddressList(f.Path)).Item2);
|
||||
|
||||
progressWindow.Show(_instance);
|
||||
|
||||
@@ -542,7 +542,7 @@ public partial class MainWindow : Window
|
||||
{
|
||||
if (customer.patch == null)
|
||||
{
|
||||
var got = DataImport.ImportKasAddressList(selected_path, null, customer.separator);
|
||||
var got = await DataImport.ImportKasAddressList(selected_path, null, customer.separator);
|
||||
if (!got.Item1)
|
||||
{
|
||||
Console.WriteLine("Error while importing. Please try another file.");
|
||||
@@ -558,7 +558,7 @@ public partial class MainWindow : Window
|
||||
}
|
||||
else
|
||||
{
|
||||
var got = DataImport.ImportKasAddressList(selected_path, customer.patch, customer.separator);
|
||||
var got = await DataImport.ImportKasAddressList(selected_path, customer.patch, customer.separator);
|
||||
if (!got.Item1)
|
||||
{
|
||||
Console.WriteLine("Error while importing. Please try another file.");
|
||||
@@ -933,4 +933,4 @@ public partial class MainWindow : Window
|
||||
MessageBox.Show(this, ex.StackTrace, "Fehler");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user