コード例 #1
0
 public ProteomeDbForm()
 {
     InitializeComponent();
     foreach (String enzyme in Enzymes.AllEnzymes().Keys)
     {
         lbxDigestion.Items.Add(enzyme);
     }
     lbxDigestion.SelectedIndex = 0;
 }
コード例 #2
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));
        }