message result sync

This commit is contained in:
rmbgame
2021-03-08 17:45:29 +08:00
parent 54a2874156
commit 49cd9d0342
14 changed files with 101 additions and 40 deletions
@@ -1,5 +1,6 @@
using System.Application.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Windows.Input;
namespace System.Application.Services
@@ -14,7 +15,9 @@ namespace System.Application.Services
/// <summary>
/// 打开子窗口
/// </summary>
void ShowChildWindow(object window);
Task ShowChildWindow(object window);
void ShowWindow(object window);
/// <summary>
/// 退出整个程序
@@ -30,6 +30,8 @@ namespace System.Application.Services
/// <returns>一个 <see cref="MessageBoxResultCompat"/> 值,用于指定用户单击了哪个消息框按钮。</returns>
Task<bool> ShowDialog(string messageBoxText, string caption, bool isCancelcBtn);
void CloseWindow(object window);
Task Show(CustomWindow window, ViewModelBase? dataContext = null);
public enum CustomWindow : byte