/// <summary> /// 对话框 /// </summary> /// <param name="info"></param> /// <param name="ico"></param> /// <param name="flag"></param> /// <returns></returns> public static DialogResult Msg(string info, MessageBoxIcon ico, int flag) { if (flag != 99) { return(DialogResult.Cancel); } frmMsg objFrmMsg = new frmMsg(flag, info, false); return(objFrmMsg.ShowDialog()); }
/// <summary> /// 对话框 /// </summary> /// <param name="info"></param> /// <param name="ico"></param> /// <param name="frmParent"></param> /// <param name="isShowCancelKey"></param> /// <returns></returns> private static DialogResult Do(string info, MessageBoxIcon ico, System.Windows.Forms.Form frmParent, bool isShowCancelKey) { int intType = 1; if (ico == MessageBoxIcon.Question) { intType = 0; } frmMsg objFrmMsg = new frmMsg(intType, info, isShowCancelKey); //if (p_frmParent == null || GlobalSysCaseScope.blnExtCall) return objFrmMsg.ShowDialog(); return(objFrmMsg.ShowDialog(frmParent)); }
/// <summary> /// 对话框 /// </summary> /// <param name="info"></param> /// <returns></returns> public static DialogResult Msg(string info) { frmMsg objFrmMsg = new frmMsg(1, info, false); return(objFrmMsg.ShowDialog()); }