Remotely/Desktop.UI/Services/DialogProvider.cs
2024-10-21 11:53:41 -07:00

17 lines
437 B
C#

using Remotely.Desktop.UI.Controls.Dialogs;
namespace Remotely.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);
}
}