private bool CheckNumber(string number)
{
Regex regex = new Regex(@"^(-)?d+(.d+)?$");
if (regex.IsMatch(number))
{
return true;
}
else
{
return false;
}
}