This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class NumericTextBox : TextBox | |
| { | |
| private const char Delete = (char)8; | |
| private const char Backspace = '\b'; | |
| public bool IsNumeric { get; set; } = false; | |
| public new string Text | |
| { | |
| get { return IsNumeric ? base.Text?.Replace(",", "") : base.Text; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#@ template language="C#" hostspecific="true" #> | |
| <#@ import namespace="System.IO" #> | |
| <#@ import namespace="System.Text.RegularExpressions" #> | |
| <#@ output extension=".txt" #> | |
| //------------------------------------------------------------------------------ | |
| // <auto-generated> | |
| // This code was generated by a tool. | |
| // Runtime Version:4.0.30319.42000 | |
| // |
NewerOlder