//判断是否是数字 public bool IsNumeric(string number) { try { float.Parse(number); return true; } catch { return false; } }