private void lvPeptides_ItemChecked(object sender, ItemCheckedEventArgs e) { if (this.bUpdatingPeptide) { return; } if (e.Item == null) { return; } var spectrum = e.Item.Tag as IIdentifiedSpectrum; option.SetPeptideRatioValid(spectrum, e.Item.Checked); UpdatePeptideColor(spectrum, e.Item); UpdateProteinContainsPeptide(spectrum); DoUpdateResult(); DoUpdateProtein(); this.btnSave.Enabled = true; }