コード例 #1
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 pMessage, String pTitle, MessageBoxButtons pMessageBoxButtons, Fwk.UI.Common.MessageBoxIcon pIcon)
        {
            using (SimpleMessageView wfrmMessageView = new SimpleMessageView())
            {
                wfrmMessageView.Text           = pTitle;
                wfrmMessageView.Message        = pMessage;
                wfrmMessageView.MessageBoxIcon = pIcon;
                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);

                wfrmMessageView.ShowDialog();

                return(wfrmMessageView.DialogResult);
            }
        }
コード例 #2
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, MessageBoxButtons pMessageBoxButtons, Fwk.UI.Common.MessageBoxIcon?pIcon)
        {
            using (SimpleMessageView wfrmMessageView = new SimpleMessageView())
            {
                wfrmMessageView.Text    = pTitle;
                wfrmMessageView.Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);

                if (pIcon == null)
                {
                    pIcon = Fwk.UI.Common.MessageBoxIcon.Error;
                }

                wfrmMessageView.MessageBoxIcon = pIcon.Value;
                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);
                wfrmMessageView.ShowDialog();

                return(wfrmMessageView.DialogResult);
            }
        }
コード例 #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(Exception e, String pTitle, MessageBoxButtons pMessageBoxButtons, Fwk.UI.Common.MessageBoxIcon? pIcon)
        {
            using (SimpleMessageView wfrmMessageView = new SimpleMessageView())
            {
                wfrmMessageView.Text = pTitle;
                wfrmMessageView.Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);

                if (pIcon == null)
                    pIcon = Fwk.UI.Common.MessageBoxIcon.Error;

                wfrmMessageView.MessageBoxIcon = pIcon.Value;
                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);
                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(String pMessage, String pTitle, MessageBoxButtons pMessageBoxButtons, Fwk.UI.Common.MessageBoxIcon pIcon)
        {
            using (SimpleMessageView wfrmMessageView = new SimpleMessageView())
            {
                wfrmMessageView.Text = pTitle;
                wfrmMessageView.Message = pMessage;
                wfrmMessageView.MessageBoxIcon = pIcon;
                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);

                wfrmMessageView.ShowDialog();

                return wfrmMessageView.DialogResult;
            }
        }
コード例 #5
0
 public SimpleMessageViewComponent(IContainer container)
 {
     container.Add(this);
     InitializeComponent();
     _FwkSimpleMessageView = new SimpleMessageView();
 }
コード例 #6
0
 public SimpleMessageViewComponent()
 {
     InitializeComponent();
     _FwkSimpleMessageView = new SimpleMessageView();
 }
コード例 #7
0
 public SimpleMessageViewComponent(IContainer container)
 {
     container.Add(this);
     InitializeComponent();
     _FwkSimpleMessageView = new SimpleMessageView();
 }
コード例 #8
0
 public SimpleMessageViewComponent()
 {
     InitializeComponent();
     _FwkSimpleMessageView = new SimpleMessageView();
 }