public ManagedDataSource( DataSource source ) { this.source = source; spectrumListForm = new SpectrumListForm(); spectrumProcessingForm = new SpectrumProcessingForm(); chromatogramListForm = new ChromatogramListForm(); graphInfoMap = new GraphInfoMap(); }
public Manager( DockPanel dockPanel ) { this.dockPanel = dockPanel; dataSourceMap = new DataSourceMap(); DockPanel.ActivePaneChanged += new EventHandler( form_GotFocus ); spectrumProcessingForm = new SpectrumProcessingForm(); spectrumProcessingForm.ProcessingChanged += new EventHandler( spectrumProcessingForm_ProcessingChanged ); //spectrumProcessingForm.GlobalProcessingOverrideButton.Click += new EventHandler( processingOverrideButton_Click ); //spectrumProcessingForm.RunProcessingOverrideButton.Click += new EventHandler( processingOverrideButton_Click ); spectrumProcessingForm.GotFocus += new EventHandler( form_GotFocus ); spectrumProcessingForm.HideOnClose = true; spectrumAnnotationForm = new SpectrumAnnotationForm(); spectrumAnnotationForm.AnnotationChanged += new EventHandler( spectrumAnnotationForm_AnnotationChanged ); spectrumAnnotationForm.GotFocus += new EventHandler( form_GotFocus ); spectrumAnnotationForm.HideOnClose = true; spectrumGlobalDataProcessing = new DataProcessing(); ShowChromatogramListForNewSources = true; ShowSpectrumListForNewSources = true; OpenFileUsesCurrentGraphForm = false; OpenFileGivesFocus = true; LoadDefaultAnnotationSettings(); }