public async Task <IDialogService.DialogResult> ShowDialog(string message, string title = "", IDialogService.ButtonType buttonType = IDialogService.ButtonType.Ok, object?window = null) { IMsBoxWindow <ButtonResult> msgBox = MessageBoxManager.GetMessageBoxStandardWindow(title, message, Convert(buttonType)); ButtonResult res = await(window is Window parentWindow ? msgBox.ShowDialog(parentWindow) : msgBox.Show()).ConfigureAwait(true); return(Convert(res)); }
static public Task <IDialogService.DialogResult> ShowDialog(string message, string title = "", IDialogService.ButtonType buttonType = IDialogService.ButtonType.Ok, object?window = null) => DialogService.ShowDialog(message, title, buttonType, window);