From 00ea1cd461d6d8d128d727f6a40edca75da9ccdd Mon Sep 17 00:00:00 2001
From: xcd <834800634@qq.com>
Date: 星期三, 08 七月 2020 16:38:46 +0800
Subject: [PATCH] 相机运行界面基类添加操作配置 gocator驱动修正长宽比例,输出进行复制插值处理 显示基元添加8个方向的拉伸和移动处理 标签基元实现3个方向的拉伸和移动

---
 src/Bro.UI.Model.Winform/UI/Canvas.cs |   50 +++++++++++++++++++++++++++-----------------------
 1 files changed, 27 insertions(+), 23 deletions(-)

diff --git a/src/Bro.UI.Model.Winform/UI/Canvas.cs b/src/Bro.UI.Model.Winform/UI/Canvas.cs
index feb020d..16ae7be 100644
--- a/src/Bro.UI.Model.Winform/UI/Canvas.cs
+++ b/src/Bro.UI.Model.Winform/UI/Canvas.cs
@@ -77,22 +77,26 @@
             set => stsStatus.Visible = value;
         }
 
-        private void OnMouseLocationUpdated(Point screenPoint, Point imagePoint)
+        private void OnMouseLocationUpdated(Point screenPoint, Point imagePoint, string colorDesc)
         {
-            MouseLocationUpdated(screenPoint, imagePoint);
+            //await Task.Run(() => tsslLocation.Text = $"灞忓箷鍧愭爣X锛歿screenPoint.X}锛孻锛歿screenPoint.Y}    鍥剧墖鍧愭爣X锛歿imagePoint.X}锛孻锛歿imagePoint.Y}   棰滆壊锛歿colorDesc}");
+            this.Invoke(new Action(() =>
+            {
+                tsslLocation.Text = $"灞忓箷鍧愭爣X锛歿screenPoint.X}锛孻锛歿screenPoint.Y}    鍥剧墖鍧愭爣X锛歿imagePoint.X}锛孻锛歿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}锛孻锛歿screenPoint.Y}    鍥剧墖鍧愭爣X锛歿imagePoint.X}锛孻锛歿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}锛孻锛歿screenPoint.Y}    鍥剧墖鍧愭爣X锛歿imagePoint.X}锛孻锛歿imagePoint.Y}   棰滆壊锛歿colorDesc}";
+        //    }
+        //}
         #endregion
 
         #region 灞炴��
@@ -377,17 +381,17 @@
 
         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
 

--
Gitblit v1.8.0