public ProteomeDbForm() { InitializeComponent(); foreach (String enzyme in Enzymes.AllEnzymes().Keys) { lbxDigestion.Items.Add(enzyme); } lbxDigestion.SelectedIndex = 0; }
private void btnDigest_Click(object sender, EventArgs e) { String enzymeName = lbxDigestion.SelectedItem.ToString(); IProtease protease = Enzymes.AllEnzymes()[enzymeName]; String organism = lbxOrganisms.SelectedItem.ToString(); RunBackground(() => proteomeDb.GetOrganism(organism).Digest(protease, enzymeName, null, UpdateProgress)); }