|
// Copyright Christophe Bertrand.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace UniversalSerializerLib3
{
/// <summary>
/// Public WindForm error messages.
/// </summary>
public static class ErrorMessagesWinForm
{
/// <summary>
/// List of errors.
/// </summary>
public static ErrorMessages.ErrorDescriptor[] Errors = new ErrorMessages.ErrorDescriptor[]
{
new ErrorMessages.ErrorDescriptor() { ErrorNumber=0,
Text= "Not an error (very strange !!)." },
};
/// <summary>
/// Get a short error description from its number.
/// </summary>
/// <param name="ErrorNumber"></param>
/// <returns></returns>
public static string GetText(int ErrorNumber)
{
return string.Format("Error WinForm {0} : {1}", ErrorMessagesWinForm.Errors[ErrorNumber].ErrorNumber.ToString(), ErrorMessagesWinForm.Errors[ErrorNumber].Text);
}
}
}
|
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.
Hi !
I made my first program on a Sinclair ZX-81.
Since that day, I have the virus of computers.
Here is my website:
https://chrisbertrand.net
And my blog:
https://chrisbertrandprogramer.wordpress.com/