示例#1
0
 /// <summary>
 /// Displays a DebuggerEvent form with the given message.
 /// </summary>
 /// <param name="title">Title of the dialog box.</param>
 /// <param name="message">The message to display in the TextArea of the dialog box.</param>
 /// <param name="icon">Icon to display i nthe dialog box.</param>
 /// <param name="canContinue">Set to true to enable the continue button on the form.</param>
 /// <returns></returns>
 public static Result Show(string title, string message, Bitmap icon, bool canContinue)
 {
     using (DebuggerEventForm form = new DebuggerEventForm()) {
         form.Text                   = title;
         form.textBox.Text           = message;
         form.pictureBox.Image       = icon;
         form.buttonContinue.Enabled = canContinue;
         form.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window);
         return(form.result);
     }
 }
		/// <summary>
		/// Displays a DebuggerEvent form with the given message.
		/// </summary>
		/// <param name="title">Title of the dialog box.</param>
		/// <param name="message">The message to display in the TextArea of the dialog box.</param>
		/// <param name="icon">Icon to display i nthe dialog box.</param>
		/// <param name="canContinue">Set to true to enable the continue button on the form.</param>
		/// <returns></returns>
		public static Result Show(string title, string message, Bitmap icon, bool canContinue)
		{
			using (DebuggerEventForm form = new DebuggerEventForm()) {
				form.Text = title;
				form.textBox.Text = message;
				form.pictureBox.Image = icon;
				form.buttonContinue.Enabled = canContinue;
				form.ShowDialog(ICSharpCode.SharpDevelop.Gui.WorkbenchSingleton.MainWin32Window);
				return form.result;
			}
		}