Sound implemented, points ok and users visible on button

This commit is contained in:
2022-07-14 23:28:39 +02:00
parent 8aa46c3176
commit 355bb57881
6 changed files with 32 additions and 5 deletions

View File

@ -195,7 +195,7 @@ namespace WinGreed
actTxtBox.Refresh();
tempChsn += outPut.NumSum;
txtChosenPoints.Text = tempChsn.ToString();
AddedPoints = tempChsn;
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)
@ -413,5 +413,13 @@ namespace WinGreed
txtTotalPoints.Text = TotPoints.ToString();
_ht.Score = TotPoints;
}
private void frmPersonRound_FormClosing(object sender, FormClosingEventArgs e)
{
if (int.Parse( txtChosenPoints.Text.Trim() )>0)
{
AddedPoints = tempChsn;
}
}
}
}