private void DelayMs_TextChanged(object sender, TextChangedEventArgs e)
 {
     ThreadPoolSample.DelayTimerMilliseconds = ThreadPoolSample.ValidateTimeValue(DelayMs.Text, ThreadPoolSample.DelayTimerMilliseconds);
     DelayMs.Text = ThreadPoolSample.DelayTimerMilliseconds.ToString();
 }
 private void PeriodMs_TextChanged(object sender, TextChangedEventArgs e)
 {
     ThreadPoolSample.PeriodicTimerMilliseconds = ThreadPoolSample.ValidateTimeValue(PeriodMs.Text, ThreadPoolSample.PeriodicTimerMilliseconds);
     PeriodMs.Text = ThreadPoolSample.PeriodicTimerMilliseconds.ToString();
 }