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(); }
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); } }
public ManagedDataSource( DataSource source ) { this.source = source; spectrumListForm = new SpectrumListForm(); spectrumProcessingForm = new SpectrumProcessingForm(); chromatogramListForm = new ChromatogramListForm(); graphInfoMap = new GraphInfoMap(); }
internal SpectrumListFilterChangedEventArgs(SpectrumListForm sender, SpectrumDataSet dataSet) { matches = sender.GridView.RowCount; total = dataSet.SpectrumTable.Count; }
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; }
internal SpectrumListFilterChangedEventArgs( SpectrumListForm sender, SpectrumDataSet dataSet ) { matches = sender.GridView.RowCount; total = dataSet.SpectrumTable.Count; }
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 ); }
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(); }