/// <summary> /// 照合大ログを表示する。 /// </summary> /// <param name="warnings">照合警告メッセージリスト</param> /// <param name="errors">照合エラーメッセージリスト</param> /// <param name="questions">問い合わせメッセージリスト</param> /// <returns>true:続行、false:中断</returns> public async Task <bool> ShowCollationDialogAsync(List <string> warnings, List <string> errors, List <string> questions) { // 警告を表示する。 foreach (string warning in warnings ?? new List <string>()) { var result = await _dialogService.Show("警告", warning, EImageKind.Warning, new List <string>() { "OK" }); } // エラーを表示する。 if (errors != null && errors.Count > 0) { foreach (string error in errors) { var result = await _dialogService.Show("エラー", error, EImageKind.Error, new List <string>() { "OK" }); } // エラーメッセージを表示したら中断を返す。 return(false); } // 問い合わせを表示する。 foreach (string question in questions ?? new List <string>()) { var result = await _dialogService.Show("問い合わせ", question, EImageKind.Question, new List <string>() { "はい" }, cancel : "いいえ"); // いいえを選択されたら中断を返す。 if (result.IsCancel) { return(false); } } // 続行を返す。 return(true); }
/// <summary> /// 照合ダイアログを表示する(警告、問い合わせのみ) /// </summary> /// <returns>タスク</returns> private async Task OnShowCollationNonErrorCommandAsync() { // 照合ダイアログを表示する。 CollationDialogUtility dialog = new CollationDialogUtility(); var result = await dialog.ShowCollationDialogAsync( new List <string>() { "警告メッセージ1", "警告メッセージ2", "警告メッセージ3" }, null, new List <string>() { "問い合わせメッセージ1", "問い合わせメッセージ2", "問い合わせメッセージ3" }); // 中断された場合はその旨をダイアログで表示する。 if (!result) { //await _pageDialogService.DisplayAlertAsync(string.Empty, "中断されました", "ok"); await _customDialogService.Show("たいとる", "中断されました", EImageKind.Nothing, new List <string> { "OK" }); } }
public void ActionsDialog(string title, List <GridItem> actions) { customDialogService.Show(title, actions); }