Пример #1
0
 //Clicking ResetBtn will set reset to true so that when textBox change, it will not start timer again
 //This will reset the timer, clear the textBox, set readOnly for textBox to false, and switch visiblity of wordPerMin to false
 private void ResetBtn_Click(object sender, EventArgs e)
 {
     reset = true;
     TimerController.ResetTimer(time);
     TextBoxController.ClearTextBox(textBox);
     TextBoxController.SetReadOnly(textBox, false);
     accuracyController.SetVisibility(accuracy, false);
     WordPerMinController.SetVisibility(wordPerMinLabel, false);
     WordPerMinController.SetVisibility(wordPerMin, false);
 }