private void ManipulateValue(TextBox tb, ValueManipulator ValMan) { if (tb.get_HMSType() == HMSType.t || tb.get_HMSType() == HMSType.tt) { AM_PM_Change(tb); return; } int NewValue; if (int.TryParse(tb.Text, out NewValue)) { ValMan(tb, NewValue); } tb.Focus(); tb.SelectAll(); }
private void ManipulateValue(TextBox tb, ValueManipulator ValMan) { if (tb.get_HMSType() == HMSType.t || tb.get_HMSType() == HMSType.tt) { AM_PM_Change(tb); return; } int NewValue; if (int.TryParse(tb.Text, out NewValue)) ValMan(tb, NewValue); tb.Focus(); tb.SelectAll(); }