Ejemplo n.º 1
0
        private void SelectHighQPoint(object sender, System.EventArgs e)
        {
            CurveItem curve;
            int       nearest;

            Pane.FindNearestPoint(MousePosition, Pane.CurveList[0], out curve, out nearest);

            if (curve.NPts > ReflData.Instance.GetNumberDataPoints)
            {
                MessageBox.Show("You have attempted to selecte points on the wrong cuve. Please zoom in and try again");
                return;
            }

            if ((nearest - ReflData.Instance.GetNumberDataPoints) + lowqindex > ReflData.Instance.GetNumberDataPoints)
            {
                MessageBox.Show("Error in setting bounds");
                return;
            }

            highqindex = nearest;

            SetBounds();

            OnChanged(this, null);
        }