Logging added points

This commit is contained in:
2022-07-14 16:52:42 +02:00
parent 903a9f99ce
commit 8aa46c3176
3 changed files with 41 additions and 8 deletions

View File

@ -20,10 +20,16 @@ namespace WinGreed
{
var nextLvInstance = lvMemberList.Items[NextLvItem()];
var nextPlayerName = nextLvInstance.Text;
fPR = new frmPersonRound(nextPlayerName);
fPR.TotPoints = int.Parse(nextLvInstance.SubItems[2].Text);
fPR.ShowDialog();
nextLvInstance.SubItems[2].Text = fPR.TotPoints.ToString();
if (!GameOver || (GameOver && nextLvInstance != gocFirst.lvsave))
{
fPR = new frmPersonRound(nextPlayerName);
fPR.TotPoints = int.Parse(nextLvInstance.SubItems[2].Text);
fPR.ShowDialog();
nextLvInstance.SubItems[2].Text = fPR.TotPoints.ToString();
lstLogBox.Items.Add($"{nextPlayerName} -> {fPR.AddedPoints} po<70>ng.");
}
if (GameOver)
{
if (nextLvInstance == gocFirst.lvsave)