Example #1
0
        /// <summary>
        /// Show method is overloaded which is used to display message
        /// and this is static method so that we don't need to create
        /// object of this class to call this method.
        /// </summary>
        /// <param name="messageText"></param>
        public static DialogResult Show(string messageText)
        {
            FrmMessage frmMessage = new FrmMessage();

            frmMessage.setMessage(messageText);
            frmMessage.addIconImage(enumMessageIcon.Information);
            frmMessage.addButton(enumMessageButton.OK);
            return(frmMessage.ShowDialog());
        }
Example #2
0
        public static DialogResult Show(string messageText, string messageTitle, enumMessageButton messageButton, enumMessageIcon messageIcons)
        {
            FrmMessage frmMessage = new FrmMessage();

            frmMessage.setMessage(messageText);
            frmMessage.Text = messageTitle;
            frmMessage.addButton(messageButton);
            frmMessage.addIconImage(messageIcons);
            return(frmMessage.ShowDialog());
        }