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); } }
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); } }