[fix:] naming window showed nothing

This commit is contained in:
2026-04-22 08:09:28 +02:00
parent 9ad378c800
commit 9777c6b5a2
5 changed files with 41 additions and 62 deletions
+9 -3
View File
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Logof_Client;
@@ -32,11 +33,16 @@ public class KasAddressList //Address-Set
this.owner_id = owner_id;
}
public static string GenerateName(string basic_type, bool? is_rest = false)
public static async Task<string> GenerateName(string basic_type, bool? is_rest = false)
{
string pre = "";
if (is_rest == true)
return basic_type + " - " + DateTime.Now.ToShortDateString() + " - Rest";
return basic_type + " - " + DateTime.Now.ToShortDateString();
pre = basic_type + " - " + DateTime.Now.ToShortDateString();
var result = await NamingWindow.Show(MainWindow._instance, pre);
return string.IsNullOrWhiteSpace(result) ? pre : result;
}
// public void UpdateErrorList(List<KasPersonError> errorList)
@@ -206,4 +212,4 @@ public class KasPersonError
return output;
}
}
}