Step against more reasonable behavior , Handle rethrow , but the rethrow not ready
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user