This file contains 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
// А вот это нам надо, потому что очень удобно | |
if (!char.IsDigit(e.KeyChar) && !char.IsControl(e.KeyChar)) | |
{ | |
e.Handled = true; | |
} | |
// Это старое такое, не знаю когда оно будет нужно | |
if (!Char.IsDigit(e.KeyChar) && !(Char.IsControl(e.KeyChar))) | |
{ | |
if (!(e.KeyChar.ToString() == ",") && (RateTextBox.Text.IndexOf(",") == -1)) |