private void TheGivenResultIsFalse() { StopWatch(); SaveTheResultsInResultsList(false); ChangeTbxSeconds(); TrueOrFalseResult tofr = new TrueOrFalseResult(string.Format("!! {0} !!", theResult.ToString())); tofr.Location = new Point(700, 200); tofr.Show(); tbxCorectResult.Text = theResult.ToString(); tbxCorectResult.Visible = true; lblYouWrote.Text = string.Format("You wrote: {0}", tbxResult.Text); lblYouWrote.Visible = true; this.Refresh(); MakeBadSound(); tofr.Close(); tbxCorectResult.Visible = false; lblYouWrote.Visible = false; GiveNewEcuation(); CalculateTheResult(); tbxResult.Text = ""; }
private void TheGivenResultIsCorect() { StopWatch(); SaveTheResultsInResultsList(true); ChangeTbxSeconds(); TrueOrFalseResult trueOrFalseResultForm = new TrueOrFalseResult("Corect!"); trueOrFalseResultForm.Location = new Point(700, 200); trueOrFalseResultForm.Show(); MakeGoodSound(); trueOrFalseResultForm.Close(); GiveNewEcuation(); tbxResult.Text = ""; CalculateTheResult(); }