public bool IsInteger(string data){ bool result = true; try { int.Parse(data); } catch (FormatException) { result = false; }return result;}