void ServerCallback_AvailableServerListReceived(object sender, AvailableServerEventArgs e) { List <ServerType> t = e.ServerList; listBox1.Items.Add(t.Count + " types of servers are available"); foreach (ServerType 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); } }
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); } }
void ServerCallback_AvailableServerListReceived(object sender, AvailableServerEventArgs e) { List<ServerType> t = e.ServerList; listBox1.Items.Add(t.Count + " types of servers are available"); foreach (ServerType st in t) { listBox1.Items.Add(st); } }