| | |
| | | set => stsStatus.Visible = value; |
| | | } |
| | | |
| | | private async void OnMouseLocationUpdated(Point screenPoint, Point imagePoint, string colorDesc) |
| | | private void OnMouseLocationUpdated(Point screenPoint, Point imagePoint, string colorDesc) |
| | | { |
| | | //await Task.Run(() => tsslLocation.Text = $"屏幕坐标X:{screenPoint.X},Y:{screenPoint.Y} 图片坐标X:{imagePoint.X},Y:{imagePoint.Y} 颜色:{colorDesc}"); |
| | | this.Invoke(new Action(() => |
| | |
| | | |
| | | private void tsmiUnselectElements_Click(object sender, EventArgs e) |
| | | { |
| | | if (MouseState == MouseState.SelectedElement) |
| | | { |
| | | MouseState = MouseState.Normal; |
| | | //if (MouseState == MouseState.SelectedElement) |
| | | //{ |
| | | // MouseState = MouseState.Normal; |
| | | |
| | | //Elements.ForEach(ele => |
| | | foreach (IShapeElement ele in Elements) |
| | | { |
| | | ele.State = ElementState.Normal; |
| | | } |
| | | //); |
| | | } |
| | | // //Elements.ForEach(ele => |
| | | // foreach (IShapeElement ele in Elements) |
| | | // { |
| | | // ele.State = ElementState.Normal; |
| | | // } |
| | | // //); |
| | | //} |
| | | } |
| | | #endregion |
| | | |