public FwkMessageViewComponent(IContainer container)
        {
            container.Add(this);


            InitializeComponent();
            _FwkMessageView = new FwkMessageView();
        }
Exemplo n.º 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(String pMessage, String pTitle,
                                        MessageBoxButtons pMessageBoxButtons, MessageBoxIcon pIcon)
        {
            using (FwkMessageView wfrmMessageView = new FwkMessageView())
            {
                wfrmMessageView.Text           = pTitle;
                wfrmMessageView.Message        = pMessage;
                wfrmMessageView.MessageBoxIcon = pIcon;

                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);


                wfrmMessageView.ShowDialog();

                return(wfrmMessageView.DialogResult);
            }
        }
Exemplo n.º 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, MessageBoxIcon?pIcon)
        {
            using (FwkMessageView wfrmMessageView = new FwkMessageView())
            {
                wfrmMessageView.Text = pTitle;

                wfrmMessageView.Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);

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

                wfrmMessageView.MessageBoxIcon = pIcon.Value;

                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);


                wfrmMessageView.ShowDialog();

                return(wfrmMessageView.DialogResult);
            }
        }
Exemplo n.º 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,
            MessageBoxButtons pMessageBoxButtons, MessageBoxIcon? pIcon)
        {


            using (FwkMessageView wfrmMessageView = new FwkMessageView())
            {
                wfrmMessageView.Text = pTitle;

                wfrmMessageView.Message = Fwk.Exceptions.ExceptionHelper.GetAllMessageException(e);

                if (pIcon == null)
                    pIcon = MessageBoxIcon.Error;

                wfrmMessageView.MessageBoxIcon = pIcon.Value;

                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);


                wfrmMessageView.ShowDialog();

                return wfrmMessageView.DialogResult;
            }
        }
Exemplo n.º 5
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, MessageBoxIcon pIcon)
        {


            using (FwkMessageView wfrmMessageView = new FwkMessageView())
            {
                wfrmMessageView.Text = pTitle;
                wfrmMessageView.Message = pMessage;
                wfrmMessageView.MessageBoxIcon = pIcon;

                wfrmMessageView.SetButtonsVisibility(pMessageBoxButtons);


                wfrmMessageView.ShowDialog();

                return wfrmMessageView.DialogResult;
            }
        }
 public FwkMessageViewComponent()
 {
     InitializeComponent();
     _FwkMessageView = new FwkMessageView();
 }
Exemplo n.º 7
0
        public FwkMessageViewComponent(IContainer container)
        {
            container.Add(this);


            InitializeComponent();
            _FwkMessageView = new FwkMessageView();
        }
Exemplo n.º 8
0
      public FwkMessageViewComponent()
      {
          InitializeComponent();
          _FwkMessageView = new FwkMessageView();
 
      }