private void form_MouseUp(object sender, MouseEventArgs e) {
if (e.Button == MouseButtons.Right) {
if (GetSeriesPointByClick(e.Location) != null) {
popupMenu1.ShowPopup(new Point(MousePosition.X, MousePosition.Y));
}
}
}
Point currentPoint = new Point();
private void form_MouseDown(object sender, MouseEventArgs e) {
if (e.Button == MouseButtons.Right) {
currentPoint = MousePosition; //暂存 MousePosition
//Console.WriteLine( $"右键 X:{currentPoint.X}, Y:{currentPoint.Y}" );
}
}