Exemplo n.º 1
0
        private async void ExecuteUpdateParticipants()
        {
            var participantsResp = await _conHandler.CurrentWarAsync();

            _participantsRecords = JsonConverter.GetAllParticipantRecords(participantsResp);
            Participants.Clear();

            System.Windows.Application.Current.Dispatcher.Invoke(() => {
                int i = 0;
                foreach (var item in _participantsRecords)
                {
                    i++;
                    item.SequenceNumber = i;
                    Participants.Add(item);
                }
            });
        }