示例#1
0
        private void pbRes_MouseMove(object sender, MouseEventArgs e)
        {
            imageConditionAndData currentImgData = null;

            if (sender == pbRes)
            {
                currentImgData = imgData;
            }
            PointD origDataPointPosition = new PointD();
            double clickedValue          = currentImgData.GetValueByClickEvent((PictureBox)sender, e, out origDataPointPosition);
            PointD thePointD             = currentImgData.getDataPositionByClickEvent((PictureBox)sender, e);
            Point  thePoint    = new Point(Convert.ToInt32(thePointD.X), Convert.ToInt32(thePointD.Y));
            string tooltipText = "position: " + thePoint + Environment.NewLine + ServiceTools.DoubleValueRepresentingString(clickedValue);

            ShowToolTip(e, tooltipText, sender);
        }