Remotely/Desktop.UI/Services/DialogProvider.cs
2024-07-16 09:11:32 -07:00

23 lines
603 B
C#

using Immense.RemoteControl.Desktop.UI.Controls.Dialogs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace Immense.RemoteControl.Desktop.UI.Services;
public interface IDialogProvider
{
Task<MessageBoxResult> Show(string message, string caption, MessageBoxType type);
}
internal class DialogProvider : IDialogProvider
{
public async Task<MessageBoxResult> Show(string message, string caption, MessageBoxType type)
{
return await MessageBox.Show(message, caption, type);
}
}