private void ServerList_Load(object sender, EventArgs e) { this.dataGridView1.DataSource = null; Application.DoEvents(); var list = new List <KnownServers>(); var servers = new NetworkManagement.Servers(ServerType.All); foreach (string name in servers) { var type = NetworkManagement.Servers.GetServerType(name); var s = new KnownServers(); s.Name = name; s.Type = type; list.Add(s); } this.dataGridView1.DataSource = list; }
/// <summary> /// /// </summary> public ServerComboBox() { InitializeComponent(); servers = new Servers(); autoRefresh = false; }
/// <summary> /// </summary> public ServerComboBox() { this.InitializeComponent(); this.servers = new Servers(); this.AutoRefresh = false; }