public override bool checkAns(string ans, string word) { if (ans == null) { ans = ""; } question = new Question(actualWord, previousAnswers, score, counter); counter++; var label = (Label)grid.FindName("wrongAnswerLabel"); label.Content = "pytanie " + (counter + 1) + "/10"; if (counter >= 10) { EndTest endTestWindow = new EndTest(score); endTestWindow.ShowDialog(); mw.MainFrame.Content = new MenuPage(); } if (ans.Equals(word)) { score++; } return(true); }
public FileSearcher(string dataPattern, int bufferSize, EndTest endTest, GetCount getCount, ReturnResult returnResult, GetFirstFileInfo getFirstFileInfo) { this.dataPattern = dataPattern.ToLower(); this.bufferSize = bufferSize; this.endTest = endTest; this.getCount = getCount; this.returnResult = returnResult; this.getFirstFileInfo = getFirstFileInfo; }
void TestEnded(string testName) { EndTest?.Invoke(testName); }