public void Update() { for (int i = 0; i < servers.Count; i++) { servers[i].Update(); if (servers[i].GetActive()) { selectedServer = servers[i]; } } }
public void Update() { refreshTimer++; if (refreshTimer >= 1000) { Console.WriteLine("Refreshing Server List.."); Refresh(); } serverList.Update(); if (serverList.GetSelectedServer() != null) { this.selectedServer = serverList.GetSelectedServer(); } }