private void ChangeMember() { var newRec = new PlayerData(CurrentRowItem); newRec.ChangingTime = DateTime.Now.ToString("HH:mm:ss"); var index = PlayersGameData.IndexOf(CurrentRowItem); PlayersGameData.Remove(CurrentRowItem); PlayersGameData.Insert(index, newRec); }
private void AddPoint() { var newRec = new PlayerData(CurrentRowItem); newRec.Score++; var index = PlayersGameData.IndexOf(CurrentRowItem); PlayersGameData.Remove(CurrentRowItem); PlayersGameData.Insert(index, newRec); var tempScore = int.Parse(Total); tempScore++; Total = tempScore.ToString(); }