[fix:] naming window showed nothing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user