예제 #1
0
        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);
        }
예제 #2
0
        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();
        }