Ejemplo n.º 1
0
        protected override void OnMouseClick(MouseEventArgs e)
        {
            float x = (e.Location.X - fOrigin.X) / fScale;
            float y = (e.Location.Y - fOrigin.Y) / fScale;

            if (e.Button == MouseButtons.Right)
            {
                var point = new CalPoint(new PointF(x, y), null, null);
                fFitter.fCal.Add(point);
                Invalidate();
                fMainForm.OnFitterChanged();
            }
            else if (e.Button == MouseButtons.Middle)
            {
                fFitter.AddResult(new PointF(x, y));
                Invalidate();
                fMainForm.OnFitterChanged();
            }
        }
Ejemplo n.º 2
0
        public void AddCal(PointF pt)
        {
            CalPoint dp = new CalPoint(pt, null, null);

            fCal.Add(dp);
        }