|
//-------------------------------------------------------------------------------------
// <copyright file="MessagePrompt.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>
/// Interface for message box prompts.
/// This allows message boxes to be injected into views for testing.
/// </summary>
/// <returns>The result of the prompt.</returns>
public interface MessagePrompt
{
/// <summary>
/// Shows a message box prompt ang gets the result.
/// </summary>
DialogResult ShowPrompt(string text, string caption, MessageBoxButtons buttons, MessageBoxIcon 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!