/// <Summary>
/// Abstract description of messageutil.
/// </Summary>
Public Class Messageutil
{
/// <Summary>
/// Display General prompt information
/// </Summary>
/// <Param name = "message"> Prompt information </Param>
Public Static Dialogresult showtips ( String Message)
{
Return MessageBox. Show (message, " Prompt information " , Messageboxbuttons. OK, messageboxicon. information );
}
/// <Summary>
/// Display warning information
/// </Summary>
/// <Param name = "message"> Warning Information </Param>
Public Static Dialogresult showwarning ( String Message)
{
Return MessageBox. Show (message, " Warning Information " , Messageboxbuttons. OK, messageboxicon. Warning );
}
/// <Summary>
/// Show error message
/// </Summary>
/// <Param name = "message"> Error Message </Param>
Public Static Dialogresult showerror ( String Message)
{
Return MessageBox. Show (message, " Error Message " , Messageboxbuttons. OK, messageboxicon. Error );
}
/// <Summary>
/// Displays user information and error marks
/// </Summary>
/// <Param name = "message"> Error Message </Param>
Public Static Dialogresult showyesnoanderror ( String Message)
{
Return MessageBox. Show (message, " Error Message " , Messageboxbuttons. yesno, messageboxicon. Error );
}
/// <Summary>
/// Displays the user information and prompts
/// </Summary>
/// <Param name = "message"> Error Message </Param>
Public Static Dialogresult showyesnoandtips ( String Message)
{
Return MessageBox. Show (message, " Prompt information " , Messageboxbuttons. yesno, messageboxicon. information );
}
/// <Summary>
/// Displays user information and warning signs
/// </Summary>
/// <Param name = "message"> Warning Information </Param>
Public Static Dialogresult showyesnoandwarning ( String Message)
{
Return MessageBox. Show (message," Warning Information " , Messageboxbuttons. yesno, messageboxicon. Warning );
}
/// <Summary>
/// Displays the user information and prompts
/// </Summary>
/// <Param name = "message"> Error Message </Param>
Public Static Dialogresult showyesnocancelandtips (String Message)
{
Return MessageBox. Show (message, " Prompt information " , Messageboxbuttons. yesnocancel, messageboxicon. information );
}
}