예제 #1
0
 /// <summary>
 /// Used by the automation engine to show a message to the user on-screen. If UI is not available, a standard messagebox will be invoked instead.
 /// </summary>
 public void ShowMessage(string message, string title, UI.Forms.Supplemental.frmDialog.DialogType dialogType, int closeAfter)
 {
     if (InvokeRequired)
     {
         var d = new ShowMessageDelegate(ShowMessage);
         Invoke(d, new object[] { message, title, dialogType, closeAfter });
     }
     else
     {
         var confirmationForm = new UI.Forms.Supplemental.frmDialog(message, title, dialogType, closeAfter);
         confirmationForm.ShowDialog();
     }
 }
        public bool ShowMessage(string message, string title, UI.Forms.Supplemental.frmDialog.DialogType dialogType, int closeAfter)
        {
            var confirmationForm = new UI.Forms.Supplemental.frmDialog(message, title, dialogType, closeAfter);

            return(confirmationForm.ShowDialog() == DialogResult.OK);
        }