public async void StartNewTest(string fileName = "") // @TODO: Make this asynchronous { _testCompleted = false; _completedWords = 0; _testTimer.Restart(); _testManager.StartNewTest(); NewTest.Invoke(this, new WordEventArgs(_testManager.GetRemainingWords())); await Task.Run(async() => RunTest()); }
/// <summary> /// On New Test /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void OnNewTest(object sender, EventArgs e) { NewTest?.Invoke(this, e); }