示例#1
0
 public void Update()
 {
     for (int i = 0; i < servers.Count; i++)
     {
         servers[i].Update();
         if (servers[i].GetActive())
         {
             selectedServer = servers[i];
         }
     }
 }
示例#2
0
        public void Update()
        {
            refreshTimer++;

            if (refreshTimer >= 1000)
            {
                Console.WriteLine("Refreshing Server List..");
                Refresh();
            }

            serverList.Update();
            if (serverList.GetSelectedServer() != null)
            {
                this.selectedServer = serverList.GetSelectedServer();
            }
        }