Example #1
0
		public ManagedDataSource( SpectrumSource source )
		{
			this.source = source;

            chromatogramListForm = new ChromatogramListForm();
            chromatogramListForm.Text = source.Name + " chromatograms";
            chromatogramListForm.TabText = source.Name + " chromatograms";
            chromatogramListForm.ShowIcon = false;

            CVID nativeIdFormat = CVID.MS_scan_number_only_nativeID_format;
            foreach (SourceFile f in source.MSDataFile.fileDescription.sourceFiles)
            {
                // the first one in the list isn't necessarily useful - could be Agilent MSCalibration.bin or the like
                nativeIdFormat = f.cvParamChild(CVID.MS_native_spectrum_identifier_format).cvid;
                if (CVID.MS_no_nativeID_format != nativeIdFormat)
                    break;
            }
            spectrumListForm = new SpectrumListForm( nativeIdFormat );
            spectrumListForm.Text = source.Name + " spectra";
            spectrumListForm.TabText = source.Name + " spectra";
            spectrumListForm.ShowIcon = false;

            spectrumDataProcessing = new DataProcessing();
            //chromatogramDataProcessing = new DataProcessing();
			//graphInfoMap = new GraphInfoMap();
		}
Example #2
0
 internal SpectrumListCellDoubleClickEventArgs(SpectrumListForm sender, DataGridViewCellMouseEventArgs e)
     : base(e.ColumnIndex, e.RowIndex, e.X, e.Y, e)
 {
     if (e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount)
     {
         spectrum = sender.GetSpectrum(e.RowIndex);
     }
 }
Example #3
0
 public ManagedDataSource( DataSource source )
 {
     this.source = source;
     spectrumListForm = new SpectrumListForm();
     spectrumProcessingForm = new SpectrumProcessingForm();
     chromatogramListForm = new ChromatogramListForm();
     graphInfoMap = new GraphInfoMap();
 }
Example #4
0
 internal SpectrumListFilterChangedEventArgs(SpectrumListForm sender, SpectrumDataSet dataSet)
 {
     matches = sender.GridView.RowCount;
     total   = dataSet.SpectrumTable.Count;
 }
Example #5
0
 internal SpectrumListCellDoubleClickEventArgs( SpectrumListForm sender, DataGridViewCellMouseEventArgs e )
     : base(e.Button, e.Clicks, e.X, e.Y, e.Delta)
 {
     if( e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount )
         spectrum = sender.GridView.Rows[e.RowIndex].Tag as MassSpectrum;
 }
Example #6
0
 internal SpectrumListFilterChangedEventArgs( SpectrumListForm sender, SpectrumDataSet dataSet )
 {
     matches = sender.GridView.RowCount;
     total = dataSet.SpectrumTable.Count;
 }
Example #7
0
		internal SpectrumListCellDoubleClickEventArgs( SpectrumListForm sender, DataGridViewCellMouseEventArgs e )
            : base( e.ColumnIndex, e.RowIndex, e.X, e.Y, e )
		{
            if( e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount )
                spectrum = sender.GetSpectrum( e.RowIndex );
		}
Example #8
0
        public ManagedDataSource( SpectrumSource source )
        {
            this.source = source;

            chromatogramListForm = new ChromatogramListForm();
            chromatogramListForm.Text = source.Name + " chromatograms";
            chromatogramListForm.TabText = source.Name + " chromatograms";
            chromatogramListForm.ShowIcon = false;

            CVID nativeIdFormat = source.MSDataFile.fileDescription.sourceFiles[0].cvParamChild( CVID.MS_native_spectrum_identifier_format ).cvid;
            spectrumListForm = new SpectrumListForm( nativeIdFormat );
            spectrumListForm.Text = source.Name + " spectra";
            spectrumListForm.TabText = source.Name + " spectra";
            spectrumListForm.ShowIcon = false;

            spectrumDataProcessing = new DataProcessing();
            //chromatogramDataProcessing = new DataProcessing();
            //graphInfoMap = new GraphInfoMap();
        }