/// <summary> /// Display a message box using the custom message box MsgBoxG /// </summary> /// <param name="sMessage_i"></param> /// <param name="sCaption_i"></param> /// <param name="messageBoxButtons_i"></param> /// <returns></returns> public static DialogResult MsgBox(string sMessage_i, string sCaption_i, MessageBoxButtons messageBoxButtons_i) { using (Log log = new Log("Glx.Common.G::MsgBox()")) { try { MsgBoxG msgBox = new MsgBoxG(sMessage_i, sCaption_i, messageBoxButtons_i); return msgBox.ShowDialog(); } catch (Exception ex) { log.Error(ex); return DialogResult.None; } } }
/// <summary> /// Display a message box using the custom message box MsgBoxG /// </summary> /// <param name="sMessage_i"></param> /// <param name="sCaption_i"></param> /// <param name="messageBoxButtons_i"></param> /// <returns></returns> public static DialogResult MsgBox(string sMessage_i, string sCaption_i, MessageBoxButtons messageBoxButtons_i) { MsgBoxG msgBox = new MsgBoxG(sMessage_i, sCaption_i, messageBoxButtons_i ); return msgBox.ShowDialog(); }