public ManagedDataSource( DataSource source ) { this.source = source; spectrumListForm = new SpectrumListForm(); spectrumProcessingForm = new SpectrumProcessingForm(); chromatogramListForm = new ChromatogramListForm(); graphInfoMap = new GraphInfoMap(); }
public void updateGraph( bool clearOverlays ) { if( clearOverlays ) currentOverlays.Clear(); showData( currentGraphItem, false ); DataSource primaryDataSource = currentDataSource; foreach( RefPair<DataSource, GraphItem> overlayDataPair in currentOverlays ) { currentDataSource = overlayDataPair.first; showData( overlayDataPair.second, true ); } currentDataSource = primaryDataSource; }
public void ShowDataOverlay( DataSource dataSource, GraphItem dataItem ) { currentOverlays.Add( new RefPair<DataSource, GraphItem>( dataSource, dataItem ) ); currentDataSource = dataSource; currentGraphItem = dataItem; showData( dataItem, true ); }
public void ShowData( DataSource dataSource, GraphItem dataItem ) { currentOverlays.Clear(); currentDataSource = dataSource; currentGraphItem = dataItem; showData( dataItem, false ); }