Example #1
0
 public static DialogResult Show(string message, string title)
 {
     messageBox                 = new MessageBoxTick();
     messageBox.Text            = title;
     messageBox.lblMessage.Text = message;
     messageBox.ShowDialog();
     return(messageBox.dResult);
 }
Example #2
0
 public static DialogResult Show(Exception ex, string message, string title)
 {
     messageBox      = new MessageBoxTick();
     messageBox.Text = title;
     messageBox.btnCancel.Visible = false;
     messageBox.btnOK.Visible     = false;
     messageBox.lblMessage.Text   = ex.Message + ":" + message;
     messageBox.ShowDialog();
     return(messageBox.dResult);
 }
Example #3
0
        public static DialogResult Show(string message, string title, int seconds, bool cancel = false)
        {
            messageBox = new MessageBoxTick();

            messageBox.timerValue       = seconds;
            messageBox.Text             = title;
            messageBox.lblMessage.Text  = message;
            messageBox.lblMessage.Image = null;
            messageBox.btnOK.Visible    = false;

            if (cancel)
            {
                messageBox.btnCancel.Visible = true;
            }
            else
            {
                messageBox.btnCancel.Visible = false;
            }
            messageBox.ShowDialog();

            return(messageBox.dResult);
        }