private void frmViewSpectra_Load(object sender, EventArgs e) { PlotSpectra(); if (!m_SpectroscopyController.IsCalibrated()) { m_StateManager.ChangeState <SpectraViewerStateCalibrate>(); } }
internal int GetSpectraPixelNoFromMouseCoordinates(Point point) { if (m_SpectroscopyController.IsCalibrated()) { return((int)Math.Round((point.X - X_AXIS_WIDTH) / m_XCoeffCalibrated + m_XOffset)); } else { return((int)Math.Round(point.X / m_XCoeff + m_XOffset)); } }