Exemplo n.º 1
0
        private void frmViewSpectra_Load(object sender, EventArgs e)
        {
            PlotSpectra();

            if (!m_SpectroscopyController.IsCalibrated())
            {
                m_StateManager.ChangeState <SpectraViewerStateCalibrate>();
            }
        }
Exemplo n.º 2
0
 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));
     }
 }