コード例 #1
0
        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));
        }
コード例 #2
0
ファイル: DialogProvider.cs プロジェクト: jl0pd/WorkingHours
 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);