private void HoursText_Enter(object sender, EventArgs e) { // Save the current value as setting the max on the arrows below can trigger // a value change that will update the value UInt16 hours = Hours; m_SelectedElement = SelectableElements.Hours; UpDownArrows.Enabled = true; UpDownArrows.Maximum = 17; UpDownArrows.Value = hours; }
private void SecondsText_Enter(object sender, EventArgs e) { // Save the current value as setting the max on the arrows below can trigger // a value change that will update the value UInt16 seconds = Seconds; m_SelectedElement = SelectableElements.Seconds; UpDownArrows.Enabled = true; UpDownArrows.Maximum = Constants.SecondsPerMinute - 1; UpDownArrows.Value = seconds; }