private void fmZedGraphControl_MouseCaptureChanged(object sender, EventArgs e)
        {
            if (IsEnableSelection)
            {
                //selectedCurves.Clear();
                //selectedPoints.Clear();

                for (int j = 0; j < originalCurvesCount; j++)
                {
                    CurveItem curve = GraphPane.CurveList[j];
                    for (int i = 0; i < curve.Points.Count; i++)
                    {
                        fmCurvePoint cp = new fmCurvePoint(curve, i);
                        if (IsPointInRectArea(GraphPane, curve, i) && !selectedPoints.Contains(cp))
                        {
                            selectedPoints.Add(cp);
                        }
                    }
                }
                foreach (fmCurvePoint cp in selectedPoints)
                {
                    LineItem myCurve = AddSelectedPoint(GraphPane, cp.Curve, cp.PointInx);
                    selectedCurves.Add(myCurve);
                }
                Invalidate();
            }
        }
        private void fmZedGraphControl_MouseClick(object sender, MouseEventArgs e)
        {
            if (IsEnableSelection)
            {
                //CurveItem curve;
                //int iPt;
                //bool cl = ZedControl.GraphPane.FindNearestPoint(new PointF(e.X, e.Y), out curve, out iPt);
                if (IsCancelSelections)
                {
                    CancelSelections();
                }


                for (int j = 0; j < originalCurvesCount; j++)
                {
                    CurveItem curve = GraphPane.CurveList[j];
                    for (int i = 0; i < curve.Points.Count; i++)
                    {
                        fmCurvePoint cp = new fmCurvePoint(curve, i);
                        if (IsPointInPixel(GraphPane, curve, i, e.Location) && !selectedPoints.Contains(cp))
                        {
                            selectedPoints.Add(cp);
                        }
                    }
                }
                foreach (fmCurvePoint cp in selectedPoints)
                {
                    LineItem myCurve = AddSelectedPoint(GraphPane, cp.Curve, cp.PointInx);
                    selectedCurves.Add(myCurve);
                }

                Invalidate();
            }
        }