コード例 #1
0
 private void pictureBox1_Click(object sender, EventArgs e)
 {
     if (mapLoaded)
     {
         var relativePoint = PointToClient(Cursor.Position);
         InformationDisplay.Text          += "{X = " + relativePoint.X + " : Y = " + relativePoint.Y + "}" + Environment.NewLine;
         InformationDisplay.Text          += map.RegionInfo(relativePoint.X, relativePoint.Y);
         InformationDisplay.Text          += Environment.NewLine;
         InformationDisplay.SelectionStart = InformationDisplay.Text.Length;
         InformationDisplay.ScrollToCaret();
     }
 }