This commit is contained in:
rmbgame
2021-03-08 13:35:02 +08:00
parent f42ca101c8
commit 5faf0eefa3
10 changed files with 104 additions and 4 deletions
@@ -13,6 +13,7 @@ namespace System.Application.UI.ViewModels
public bool IsInitialized { get; set; }
public bool DialogResult { get; protected set; }
protected void InvokeOnUIDispatcher(Action action)
{
MainThreadDesktop.BeginInvokeOnMainThread(action);
@@ -1,4 +1,5 @@
using ReactiveUI;
using System.Application.Services;
using System.Application.UI.Resx;
using System.Collections.Generic;
using System.Linq;
@@ -30,6 +31,8 @@ namespace System.Application.UI.ViewModels
Services.ToastService.Current.Notify("Test CommandTest CommandTest CommandTest CommandTest CommandTest Command");
DebugString += Services.ToastService.Current.Message + Environment.NewLine;
DebugString += Services.ToastService.Current.IsVisible + Environment.NewLine;
DI.Get<IMessageWindowService>().ShowDialog("Test", "Test");
}
}
}