Exemple #1
0
        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());
        }
Exemple #2
0
 /// <summary>
 /// On New Test
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void OnNewTest(object sender, EventArgs e)
 {
     NewTest?.Invoke(this, e);
 }