Step against more reasonable behavior , Handle rethrow , but the rethrow not ready

This commit is contained in:
2022-07-06 22:46:47 +02:00
parent 4ab6461e4f
commit 298c4e94ad
5 changed files with 103 additions and 86 deletions

View File

@ -179,6 +179,12 @@ namespace WinGreed
var actTxtBox = ((TextBox)this.Controls.Find($"txtChosenValue{row}", true).FirstOrDefault());
actTxtBox.Text = outPut;
actTxtBox.Refresh();
if(((TextBox)this.Controls.Find($"txtMaxValue{row}", true).FirstOrDefault()).Text == actTxtBox.Text
&& int.Parse(actTxtBox.Text.Trim()) > 0
&& _ht.Dices.Count(x => x.Chosen == true) == _ht.Dices.Count)
{
_ht.Dices.ForEach(x => x.Chosen = false);
}
}
numbers.ForEach(x => Debug.Write($"{x}, "));
@ -375,5 +381,11 @@ namespace WinGreed
txtTotalPoints.Text = totalSum.ToString();
_ht.Score += totalSum;
}
private void frmPersonRound_Shown(object sender, EventArgs e)
{
txtTotalPoints.Text = TotPoints.ToString();
_ht.Score = TotPoints;
}
}
}