private void HeliosTestTextBox_TextChanged(object sender, TextChangedEventArgs e) { HeliosTextBox textBox = sender as HeliosTextBox; TextDisplay textDisplay = Control as TextDisplay; if (textDisplay != null) { textDisplay.TextValue = textBox.Text; } }
private void OutputChange(object sender, TextChangedEventArgs e) { HeliosTextBox box = sender as HeliosTextBox; if (box != null) { long value = 0; long.TryParse(box.Text, out value); if (value < MinOutput) { box.Text = MinOutput.ToString(); } else if (value > MaxOutput) { box.Text = MaxOutput.ToString(); } } }