Exemplo n.º 1
0
        private void ProcessPlayersOnlineTab()
        {
            if (PlayersOnlineListView != null)
            {
                if (PlayersOnlineListView.Items.Count != Envir.Players.Count)
                {
                    PlayersOnlineListView.Items.Clear();

                    for (int i = PlayersOnlineListView.Items.Count; i < Envir.Players.Count; i++)
                    {
                        CharacterInfo character = Envir.Players[i].Info;

                        ListViewItem tempItem = character.CreateListView();

                        PlayersOnlineListView.Items.Add(tempItem);
                    }
                }
            }
        }