Exemple #1
0
 public static void Show(IWin32Window owner, string message, string caption)
 {
   if (string.IsNullOrEmpty(message))
     return;
   var box = new InfoBox();
   box.Text = caption;
   box.txtMessage.Text = message;
   box.txtMessage.Properties.ReadOnly = true;
   box.txtMessage.SelectionStart = 0;
   box.txtMessage.SelectionLength = 0;
   box.ShowDialog(owner);
 }