Exemplo n.º 1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;

            if (ownerGraphForm.CurrentScan.IsMassSpectrum)
            {
                ownerGraphForm.AnnotationSettings.ScanMatchToleranceUnit     = (SeemsAnnotationSettings.ScanMatchToleranceUnits)matchToleranceUnitsComboBox.SelectedIndex;
                ownerGraphForm.AnnotationSettings.ScanMatchToleranceOverride = matchToleranceCheckbox.Checked;
                ownerGraphForm.AnnotationSettings.ScanMatchTolerance         = Convert.ToDouble(matchToleranceTextBox.Text);
                ownerGraphForm.AnnotationSettings.ShowScanPointMZs           = showIndependentValueLabelCheckbox.Checked;
                ownerGraphForm.AnnotationSettings.ShowScanPointIntensities   = showDependentValueLabelCheckbox.Checked;
            }
            else
            {
                ownerGraphForm.AnnotationSettings.ChromatogramMatchToleranceUnit     = (SeemsAnnotationSettings.ChromatogramMatchToleranceUnits)matchToleranceUnitsComboBox.SelectedIndex;
                ownerGraphForm.AnnotationSettings.ChromatogramMatchToleranceOverride = matchToleranceCheckbox.Checked;
                ownerGraphForm.AnnotationSettings.ChromatogramMatchTolerance         = Convert.ToDouble(matchToleranceTextBox.Text);
                ownerGraphForm.AnnotationSettings.ShowChromatogramPointTimes         = showIndependentValueLabelCheckbox.Checked;
                ownerGraphForm.AnnotationSettings.ShowChromatogramPointIntensities   = showDependentValueLabelCheckbox.Checked;
            }

            ownerGraphForm.AnnotationSettings.ShowMatchedAnnotations   = showMatchedAnnotationsCheckbox.Checked;
            ownerGraphForm.AnnotationSettings.ShowUnmatchedAnnotations = showUnmatchedAnnotationsCheckbox.Checked;

            ownerGraphForm.AnnotationSettings.LabelToAliasAndColorMap.Clear();
            foreach (object itr in aliasAndColorMappingListBox.Items)
            {
                LabelToAliasAndColorPair item = (itr as LabelToAliasAndColorListItem).mapPair;
                ownerGraphForm.AnnotationSettings.LabelToAliasAndColorMap[item.Key] = new Pair <string, Color>(item.Value.first, item.Value.second);
            }

            ownerGraphForm.updateGraph();
        }
			internal LabelToAliasAndColorListItem( LabelToAliasAndColorPair mapPair )
			{
				this.mapPair = mapPair;
			}
Exemplo n.º 3
0
 internal LabelToAliasAndColorListItem(LabelToAliasAndColorPair mapPair)
 {
     this.mapPair = mapPair;
 }