引入 UISerializationRoot 和 Item
- 完成 MenuForm 和 SelectRoleForm 的迁移
This commit is contained in:
@@ -38,7 +38,7 @@ namespace SepCore.UI
|
||||
|
||||
if (userData is not DialogContext context)
|
||||
{
|
||||
Log.Warning("DialogContext is invalid.");
|
||||
Log.Error("DialogForm requires DialogContext as userData.");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -47,12 +47,6 @@ namespace SepCore.UI
|
||||
|
||||
public void RefreshUI(DialogContext context)
|
||||
{
|
||||
if (context == null)
|
||||
{
|
||||
Log.Warning("DialogContext is invalid.");
|
||||
return;
|
||||
}
|
||||
|
||||
_dialogMode = context.Mode;
|
||||
RefreshDialogMode();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user