|
using System;
using FarsiLibrary.Utils;
namespace FarsiLibrary.Test
{
public partial class frm07 : baseForm
{
#region Ctor
public frm07()
{
InitializeComponent();
}
#endregion
#region EventHandlers
private void btnConvert_Click(object sender, EventArgs e)
{
try
{
long num = long.Parse(txtNumber.Text);
lblResult.Text = ToWords.ToString(num);
}
catch(ArgumentOutOfRangeException)
{
lblResult.Text = "لطفا عدد کوچکتری را وارد کنید";
}
catch(FormatException)
{
lblResult.Text = string.Empty;
}
}
#endregion
}
}
|
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.
Working on both Java and .NET Technology, I have developed various enterprise level applications on both platforms. Currently, I am working as a Senior Software Developer at Readify which is a leading company on .NET technology in Australia.