| | |
| | | set => stsStatus.Visible = value; |
| | | } |
| | | |
| | | private void OnMouseLocationUpdated(Point screenPoint, Point imagePoint) |
| | | private async void OnMouseLocationUpdated(Point screenPoint, Point imagePoint, string colorDesc) |
| | | { |
| | | MouseLocationUpdated(screenPoint, imagePoint); |
| | | //await Task.Run(() => tsslLocation.Text = $"屏幕坐标X:{screenPoint.X},Y:{screenPoint.Y} 图片坐标X:{imagePoint.X},Y:{imagePoint.Y} 颜色:{colorDesc}"); |
| | | this.Invoke(new Action(() => |
| | | { |
| | | tsslLocation.Text = $"屏幕坐标X:{screenPoint.X},Y:{screenPoint.Y} 图片坐标X:{imagePoint.X},Y:{imagePoint.Y} 颜色:{colorDesc}"; |
| | | })); |
| | | } |
| | | |
| | | private void MouseLocationUpdated(Point screenPoint, Point imagePoint) |
| | | { |
| | | if (InvokeRequired) |
| | | { |
| | | Invoke(new Action<Point, Point>(MouseLocationUpdated), screenPoint, imagePoint); |
| | | } |
| | | else |
| | | { |
| | | tsslLocation.Text = $"屏幕坐标X:{screenPoint.X},Y:{screenPoint.Y} 图片坐标X:{imagePoint.X},Y:{imagePoint.Y}"; |
| | | } |
| | | } |
| | | //private void MouseLocationUpdated(Point screenPoint, Point imagePoint, string colorDesc) |
| | | //{ |
| | | // if (InvokeRequired) |
| | | // { |
| | | // Invoke(new Action<Point, Point, string>(MouseLocationUpdated), screenPoint, imagePoint); |
| | | // } |
| | | // else |
| | | // { |
| | | // tsslLocation.Text = $"屏幕坐标X:{screenPoint.X},Y:{screenPoint.Y} 图片坐标X:{imagePoint.X},Y:{imagePoint.Y} 颜色:{colorDesc}"; |
| | | // } |
| | | //} |
| | | #endregion |
| | | |
| | | #region 属性 |