public static void Show(ExPage _page, Control _errCtl, string strMsg) { if (string.IsNullOrEmpty(strMsg)) return; Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, MessageBoxIcon.Information); msg.Closed -= ExMessageBox._dlg_Closed; msg.Closed += ExMessageBox._dlg_Closed; msg.Show(); ExMessageBox.page = _page; ExMessageBox.errCtl = _errCtl; //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK); }
public static void ResultShowClr(ExChildWindow _win, Control _errCtl) { ExMessageBox.win = _win; ExMessageBox.errCtl = _errCtl; Dlg_MessagBox msg = new Dlg_MessagBox("確認", "クリアします。" + "よろしいですか?", MessageBoxButtons.OkCancel, MessageBoxIcon.Question); msg.Closed -= ExMessageBox.dlg_ClosedClr; msg.Closed += ExMessageBox.dlg_ClosedClr; msg.Show(); }
public static void Show(string strMsg, string strTitle) { if (string.IsNullOrEmpty(strMsg)) return; Dlg_MessagBox msg = new Dlg_MessagBox(strTitle, strMsg, MessageBoxButtons.Ok, MessageBoxIcon.Information); msg.Show(); //MessageBox.Show(strMsg, strTitle, MessageBoxButton.OK); }
public static void ResultShow(ExChildWindow _win, Control _errCtl, string strMsg) { if (string.IsNullOrEmpty(strMsg)) return; ExMessageBox.win = _win; ExMessageBox.errCtl = _errCtl; Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.OkCancel, MessageBoxIcon.Question); msg.Closed -= ExMessageBox.dlg_Closed; msg.Closed += ExMessageBox.dlg_Closed; msg.Show(); //return MessageBox.Show(strMsg, "確認", MessageBoxButton.OKCancel); }
public static void Show(string strMsg) { if (string.IsNullOrEmpty(strMsg)) return; if (!string.IsNullOrEmpty(Common.gstrMsgSessionError)) return; Dlg_MessagBox msg = new Dlg_MessagBox("確認", strMsg, MessageBoxButtons.Ok, MessageBoxIcon.Information); msg.Show(); if (strMsg.IndexOf("セッションタイムアウトが発生しました。") != -1) { Common.gstrMsgSessionError = strMsg; } //MessageBox.Show(strMsg, "確認", MessageBoxButton.OK); }