Ejemplo n.º 1
0
 public override bool InputControl(string fullText)
 {
     if (fullText.Length == 1)
     {
         if (".".Equals(fullText))
         {
             return(false);
         }
     }
     return(RegexCheck.IsPlusDecimal(fullText) || (fullText.Count(c => c == '.') == 1 && fullText.IndexOf('.') == fullText.Length - 1));//有一个小数点且在末尾
 }