void StartServer(object sender, EventArgs e) { Servers s = (Servers)comboBox1.SelectedItem; if (s == null) return; listBox1.Items.Add(client.StartServer(s.type, s.args)); }