private void listClaves_SelectedIndexChanged(object sender, EventArgs e) { SubClaves = Datos.ObtenerSubTipoLlamados(aClaves[listClaves.SelectedIndex].Value); listSubclaves.Items.Clear(); groupBox2.Text = "Subclaves de " + listClaves.SelectedItem.ToString().Split(' ')[0]; foreach (KeyValuePair <string, int> k in SubClaves) { listSubclaves.Items.Add(k); } }