コード例 #1
0
        public ExceptionViewComponent(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            _FwkMessageView = new ExceptionView();
        }
コード例 #2
0
        public ExceptionViewComponent(IContainer container)
        {
            container.Add(this);

            InitializeComponent();
            _FwkMessageView = new ExceptionView();
        }
コード例 #3
0
        /// <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);
            }
        }
コード例 #4
0
        /// <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);
            }
        }
コード例 #5
0
 public ExceptionViewComponent()
 {
     InitializeComponent();
     _FwkMessageView = new ExceptionView();
 }
コード例 #6
0
 public ExceptionViewComponent()
 {
     InitializeComponent();
     _FwkMessageView = new ExceptionView();
     
 }
コード例 #7
0
ファイル: ExceptionView.cs プロジェクト: spzenk/sfdocsamples
        /// <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;
            }
        }
コード例 #8
0
ファイル: ExceptionView.cs プロジェクト: spzenk/sfdocsamples
        /// <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;
            }
        }