private void ValidateNumbericTextBox(TextBox textBox) { if (!textBox.Text.IsNumeric()) { textBox.Text = ""; } }