public ExceptionViewComponent(IContainer container) { container.Add(this); InitializeComponent(); _FwkMessageView = new ExceptionView(); }
/// <summary> /// Muestra el Mensaje /// </summary> /// <param name="pMessage">Mensaje a mostrar</param> /// <param name="pMessageBoxButtons">Specifies constants defining which buttons to display on a System.Windows.Forms.MessageBox.</param> /// <param name="MessageBoxIcon">Specifies constants defining which information to display.</param> /// <returns>DialogResult</returns> public static DialogResult Show(String pSource, String pMessage, String pDetail, String pTitle) { using (ExceptionView wfrmMessageView = new ExceptionView()) { wfrmMessageView.Text = pTitle; wfrmMessageView.Message = pMessage; wfrmMessageView.Source = pSource; wfrmMessageView.Detail = pDetail; wfrmMessageView.ShowDialog(); return(wfrmMessageView.DialogResult); } }
/// <summary> /// Muestra el Mensaje /// </summary> /// <param name="pMessage">Mensaje a mostrar</param> /// <param name="pMessageBoxButtons">Specifies constants defining which buttons to display on a System.Windows.Forms.MessageBox.</param> /// <param name="MessageBoxIcon">Specifies constants defining which information to display.</param> /// <returns>DialogResult</returns> public static DialogResult Show(Exception e, String pTitle) { using (ExceptionView wfrmMessageView = new ExceptionView()) { wfrmMessageView.Detail = string.Concat("Codigo de error : ", Fwk.Exceptions.ExceptionHelper.GetFwkErrorId(e), Environment.NewLine, Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e)); wfrmMessageView.Message = e.Message; wfrmMessageView.Source = e.Source; if (!String.IsNullOrEmpty(pTitle)) { wfrmMessageView.Text = pTitle; } wfrmMessageView.ShowDialog(); return(wfrmMessageView.DialogResult); } }
public ExceptionViewComponent() { InitializeComponent(); _FwkMessageView = new ExceptionView(); }
/// <summary> /// Muestra el Mensaje /// </summary> /// <param name="pMessage">Mensaje a mostrar</param> /// <param name="pMessageBoxButtons">Specifies constants defining which buttons to display on a System.Windows.Forms.MessageBox.</param> /// <param name="MessageBoxIcon">Specifies constants defining which information to display.</param> /// <returns>DialogResult</returns> public static DialogResult Show(String pSource, String pMessage, String pDetail, String pTitle) { using (ExceptionView wfrmMessageView = new ExceptionView()) { wfrmMessageView.Text = pTitle; wfrmMessageView.Message = pMessage; wfrmMessageView.Source = pSource; wfrmMessageView.Detail = pDetail; wfrmMessageView.ShowDialog(); return wfrmMessageView.DialogResult; } }
/// <summary> /// Muestra el Mensaje /// </summary> /// <param name="pMessage">Mensaje a mostrar</param> /// <param name="pMessageBoxButtons">Specifies constants defining which buttons to display on a System.Windows.Forms.MessageBox.</param> /// <param name="MessageBoxIcon">Specifies constants defining which information to display.</param> /// <returns>DialogResult</returns> public static DialogResult Show(Exception e, String pTitle) { using (ExceptionView wfrmMessageView = new ExceptionView()) { wfrmMessageView.Detail =string.Concat("Codigo de error : ",Fwk.Exceptions.ExceptionHelper.GetFwkErrorId(e),Environment.NewLine, Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e)); wfrmMessageView.Message = e.Message; wfrmMessageView.Source = e.Source; if (!String.IsNullOrEmpty(pTitle)) wfrmMessageView.Text = pTitle; wfrmMessageView.ShowDialog(); return wfrmMessageView.DialogResult; } }