示例#1
0
 void ServerCallback_AvailableServerListReceived(object sender, AvailableServerEventArgs e)
 {
     List<ServerType1> t = e.ServerList;
     listBox1.Items.Add(t.Count + " types of servers are available");
     foreach (ServerType1 st in t)
     {
         listBox1.Items.Add(st);
     }
 }
示例#2
0
 public void AvailableServers(ServerType[] servers)
 {
     List<ServerType> meh = new List<ServerType>(servers);
     if (AvailableServerListReceived != null)
     {
         AvailableServerEventArgs asea = new AvailableServerEventArgs();
         asea.ServerList = meh;
         AvailableServerListReceived(this, asea);
     }
 }