We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3dbcf8 commit a2e6383Copy full SHA for a2e6383
1 file changed
src/Codebreaker.WinUI/Services/WinUIDialogService.cs
@@ -1,13 +1,13 @@
1
-using Codebreaker.ViewModels.Services;
2
-using Windows.UI.Popups;
+using Codebreaker.ViewModels.Contracts.Services;
+using Codebreaker.ViewModels.Services;
3
4
namespace CodeBreaker.WinUI.Services;
5
6
-internal class WinUIDialogService : IDialogService
+internal class WinUIDialogService(IInfoBarService infoBarService) : IDialogService
7
{
8
- public async Task ShowMessageAsync(string message)
+ public Task ShowMessageAsync(string message)
9
10
- MessageDialog dlg = new(message);
11
- await dlg.ShowAsync();
+ infoBarService.New.WithMessage(message).Show();
+ return Task.CompletedTask;
12
}
13
0 commit comments