Esempio n. 1
0
        void GlobalServerRetriever_Retrieved(List<KMPServer> serverlist)
        {
            GlobalServers = serverlist;

            var retriever = new ServerInformationRetrieverAsync();

            retriever.ServerRetrieved += retrieverGlobal_ServerRetrieved;

            foreach (KMPServer s in GlobalServers)
            {
                retriever.RetrieveAsync(s, s.HTTPPort);
            }
        }
Esempio n. 2
0
        private void EditButton_Click(object sender, EventArgs e)
        {
            LastSelectedServer.Name = textBoxName.Text;

            LastSelectedServer.Address = textBoxAddress.Text;

            var retriever = new ServerInformationRetrieverAsync();

            retriever.ServerRetrieved +=retriever_EditServerRetrieved;

            retriever.RetrieveAsync(LastSelectedServer, 8081);
        }
Esempio n. 3
0
        private void FillServerList()
        {
            listView1.Items.Clear();

            var retriever = new ServerInformationRetrieverAsync();

            retriever.ServerRetrieved += retrieverLocal_ServerRetrieved;
            foreach (KMPServer s in PlayerServers)
            {
                retriever.RetrieveAsync(s, s.HTTPPort);

            }

            GlobalServerRetriever.Retrieve();
        }