private void RefreshOrganisms() { lbxOrganisms.Items.Clear(); if (ProteomeDb != null) { foreach (Organism organism in ProteomeDb.ListOrganisms()) { lbxOrganisms.Items.Add(organism.Name); } if (lbxOrganisms.Items.Count > 0) { lbxOrganisms.SelectedIndex = 0; btnDigest.Enabled = true; } else { btnDigest.Enabled = false; } btnAddOrganism.Enabled = true; } else { btnDigest.Enabled = false; btnAddOrganism.Enabled = false; } }