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
 public ManagedDataSource( DataSource source )
 {
     this.source = source;
     spectrumListForm = new SpectrumListForm();
     spectrumProcessingForm = new SpectrumProcessingForm();
     chromatogramListForm = new ChromatogramListForm();
     graphInfoMap = new GraphInfoMap();
 }
Example #3
0
 internal ChromatogramListCellDoubleClickEventArgs(ChromatogramListForm sender, DataGridViewCellMouseEventArgs e)
     : base(e.ColumnIndex, e.RowIndex, e.X, e.Y, e)
 {
     if (e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount)
     {
         chromatogram = sender.GetChromatogram(e.RowIndex);
     }
 }
 internal ChromatogramListCellDoubleClickEventArgs( ChromatogramListForm sender, DataGridViewCellMouseEventArgs e )
     : base(e.Button, e.Clicks, e.X, e.Y, e.Delta)
 {
     if( e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount )
         chromatogram = sender.GridView.Rows[e.RowIndex].Tag as Chromatogram;
 }
 internal ChromatogramListFilterChangedEventArgs( ChromatogramListForm sender, ChromatogramDataSet dataSet )
 {
     matches = sender.GridView.RowCount;
     total = dataSet.ChromatogramTable.Count;
 }
		internal ChromatogramListCellDoubleClickEventArgs( ChromatogramListForm sender, DataGridViewCellMouseEventArgs e )
			: base( e.ColumnIndex, e.RowIndex, e.X, e.Y, e )
		{
            if( e.RowIndex > -1 && e.RowIndex < sender.GridView.RowCount )
                chromatogram = sender.GetChromatogram( e.RowIndex );
		}
Example #7
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();
        }
Example #8
0
 internal ChromatogramListFilterChangedEventArgs(ChromatogramListForm sender, ChromatogramDataSet dataSet)
 {
     matches = sender.GridView.RowCount;
     total   = dataSet.ChromatogramTable.Count;
 }