Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            modifications = new ModificationDictionary(Application.StartupPath);

            lstAllModifications.DisplayMember           = "Text";
            lstSelectedFixedModifications.DisplayMember = "Text";
            foreach (Modification modification in modifications.Values)
            {
                ListViewItem list_view_item = new ListViewItem(modification.Name);
                list_view_item.Tag = modification;
                if (modification.Name == "carbamidomethyl C")
                {
                    lstSelectedFixedModifications.Items.Add(list_view_item);
                }
                else
                {
                    lstAllModifications.Items.Add(list_view_item);
                }
            }

            Peptide.SetModifications(modifications);

            cboFragmentIntensityThresholdType.DataSource   = Enum.GetValues(typeof(IntensityThresholdType));
            cboFragmentIntensityThresholdType.SelectedItem = IntensityThresholdType.Absolute;
        }
Пример #2
0
 public static void SetModifications(ModificationDictionary modifications)
 {
     MODIFICATIONS = modifications;
 }