コード例 #1
0
ファイル: frmTICViewer.cs プロジェクト: trishorts/DeconTools
 private void Init()
 {
     try
     {
         var shape = new PNNL.Controls.DiamondShape(3, false);
         mobj_tic_plt_params       = new PNNL.Controls.clsPlotParams(shape, Color.Red, false, true, true);
         mobj_bpi_plt_params       = new PNNL.Controls.clsPlotParams(shape, Color.Blue, false, true, true);
         m_tic_chart_data_provider = new PNNL.Controls.ArrayChartDataProvider();
         m_bpi_chart_data_provider = new PNNL.Controls.ArrayChartDataProvider();
         mobjRawData = new DeconToolsV2.Readers.clsRawData();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message);
     }
 }
コード例 #2
0
        private void Init()
        {
            try
            {
                mctl_spectrum      = new ctlMassSpectrum();
                mctl_spectrum.Dock = DockStyle.Fill;
                panel1.Controls.Add(mctl_spectrum);
                mctl_spectrum.Mediator          = mMediator;
                mctl_spectrum.mevntScanChanged += new Decon2LS.ctlMassSpectrum.ScanChangedEventHandler(mctl_spectrum_mevntScanChanged);

                marr_tic_values = new float[1];
                marr_scan_times = new float[1];

                this.m_tic_current_scan_pen_provider      = new PenProvider();
                m_tic_current_scan_pen_provider.DashStyle = System.Drawing.Drawing2D.DashStyle.Dash;

                var shape = new PNNL.Controls.DiamondShape(3, false);
                mobj_tic_plt_params = new PNNL.Controls.clsPlotParams(shape, Color.DarkSlateGray, false, true, true);

                this.KeyDown               += new KeyEventHandler(frmSpectra_KeyDown);
                this.mctl_tic.KeyDown      += new KeyEventHandler(frmSpectra_KeyDown);
                this.mctl_spectrum.KeyDown += new KeyEventHandler(frmSpectra_KeyDown);

                mint_spectrum_num = -1;

                this.m_tic_chart_data_provider = new ArrayChartDataProvider();
                this.mobj_tic_series           = new clsSeries(this.m_tic_chart_data_provider, this.mobj_tic_plt_params);
                this.mctl_tic.SeriesCollection.Add(mobj_tic_series);

                // Set category info
                this.Category        = new CategoryInfo[] { frmSpectra.MainCategory, new CategoryInfo("Unopened") };
                this.CategorizedText = "Unopened";

                mobjRawData = new DeconToolsV2.Readers.clsRawData();

                mctl_tic.DefaultZoomHandler.SingleClickNoZoomPerformed += new SingleClickNoZoomHandler(TicDefaultZoomHandler_SingleClickNoZoomPerformed);

                this.frmSpectra_Resize(this, null);
            }
            catch (Exception ex)
            {
                MessageBox.Show(this, ex.Message);
            }
        }