|
//-------------------------------------------------------------------------------------
// <copyright file="ConcreteMessagePrompt.cs" company="Jonno">
// Copyright (c) 2009 Paul Johnson (paulmichael.johnson@gmail.com)
// Code is released under The Code Project Open License (CPOL).
// </copyright>
//-------------------------------------------------------------------------------------
namespace Jonno.Presentation
{
using System.Windows.Forms;
/// <summary>
/// Implementation of the message box prompt.
/// Simply a facade to the System.Windows.Form.MessageBox class.
/// </summary>
/// <returns>The result of the prompt.</returns>
public class ConcreteMessagePrompt : MessagePrompt
{
/// <summary>
/// Shows a message box prompt and gets the result.
/// </summary>
public DialogResult ShowPrompt(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon icon)
{
return MessageBox.Show(text, caption, buttons, icon);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I have over 15 years of development experience, in many different languages, programming styles and platforms. Currently working as a C# coder, and residing in north Herts in the UK. I love lean software development and anything that reduces a grind to leave more time for useful coding!