From e22fdb94322e6cec38e5e4a9aec13d431a133fde Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期二, 28 四月 2020 16:32:35 +0800
Subject: [PATCH] 上传合并后的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs |  156 ++++++++++++++++++++++++++--------------------------
 1 files changed, 78 insertions(+), 78 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs
similarity index 97%
rename from ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs
rename to ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs
index bab9c6a..f5da451 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutStatuControl.cs
@@ -7,21 +7,21 @@
     /// <summary>
     /// 鍋氭垚涓�涓偣鍑诲悗鑳藉鏄剧ず鐐瑰嚮鐘舵�佺殑鎺т欢(鍩哄眰鎺т欢)
     /// </summary>
-    public class FrameLayoutControl : FrameLayout
+    public class FrameLayoutStatuControl : FrameLayoutBase
     {
         #region 鈻� 鍙橀噺澹版槑___________________________
 
-        /// <summary>
-        /// 鍗曞嚮寮硅捣浜嬩欢
-        /// </summary>
-        public Action<object, MouseEventArgs> ButtonClickEvent;
-        /// <summary>
-        /// 鐘舵�佽缃殑浜嬩欢(浼氶噸杞藉簳灞傛晥鏋�)
-        /// </summary>
+        /// <summary>
+        /// 鍗曞嚮寮硅捣浜嬩欢
+        /// </summary>
+        public Action<object, MouseEventArgs> ButtonClickEvent;
+        /// <summary>
+        /// 鐘舵�佽缃殑浜嬩欢(浼氶噸杞藉簳灞傛晥鏋�)
+        /// </summary>
         public Action<bool> SelectStatuEvent;
         /// <summary>
         /// 鏄惁鍚敤鐐逛寒鍔熻兘(榛樿鍚敤)
-        /// </summary>
+        /// </summary>
         public bool UseClickStatu = true;
         /// <summary>
         /// 鑳藉惁鐐瑰嚮
@@ -29,11 +29,11 @@
         public bool CanClick = true;
         /// <summary>
         /// 鍘熸潵鐨勮儗鏅壊
-        /// </summary>
-        private uint oldBackColor = 0;
+        /// </summary>
+        private uint oldBackColor = 0;
         /// <summary>
         /// 褰撳墠鏄惁宸茬粡澶勪簬閫夋嫨鐘舵��
-        /// </summary>
+        /// </summary>
         private bool IsSelectStatu = false;
         /// <summary>
         /// 瀛愭帶浠禮杞村亸绉婚噺(鍏遍�氬畾涔夎�屽凡)
@@ -47,47 +47,47 @@
             set { this.Radius = (uint)Application.GetRealHeight(value); }
         }
 
-        #endregion
+        #endregion
 
         #region 鈻� 鍒濆鍖朹____________________________
 
         /// <summary>
         /// 鍋氭垚涓�涓偣鍑诲悗鑳藉鏄剧ず鐐瑰嚮鐘舵�佺殑鎺т欢
-        /// </summary>
-        /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param>
-        public FrameLayoutControl(int i_ChidrenYaxis = 0)
+        /// </summary>
+        /// <param name="i_ChidrenYaxis">瀛愭帶浠禮杞村亸绉婚噺(鐪熷疄鍊�,鏈変簺鐣岄潰闇�瑕佽繖绉嶇壒娈婃搷浣�)</param>
+        public FrameLayoutStatuControl(int i_ChidrenYaxis = 0)
         {
             this.chidrenYaxis = i_ChidrenYaxis;
 
             this.MouseUpEventHandler += ChildrenUpEvent;
-            this.MouseDownEventHandler += ChildrenDownEvent;
+            this.MouseDownEventHandler += ChildrenDownEvent;
         }
 
-        #endregion
+        #endregion
 
-        #region 鈻� 缁戝畾浜嬩欢___________________________
+        #region 鈻� 缁戝畾浜嬩欢___________________________
 
         /// <summary>
         /// 鍙樻洿瀛愭帶浠剁殑缁戝畾妯″紡
         /// </summary>
         /// <param name="view">瀛愭帶浠�</param>
-        /// <param name="chidrenBindMode">鍙樻洿鐨勭粦瀹氭ā寮�</param>
+        /// <param name="chidrenBindMode">鍙樻洿鐨勭粦瀹氭ā寮�</param>
         public void ChangedChidrenBindMode(View view, ChidrenBindMode chidrenBindMode)
         {
-            if (view is ButtonBase)
+            if (view is ButtonBase)
             {
                 //瀛愭帶浠剁Щ闄や簨浠�
                 ButtonBase button = (ButtonBase)view;
                 button.ButtonClickEvent -= ChildrenUpEvent;
-                button.MouseDownEventHandler -= ChildrenDownEvent;
-
-                this.BindChidrenEvent(view, chidrenBindMode);
+                button.MouseDownEventHandler -= ChildrenDownEvent;
+
+                this.BindChidrenEvent(view, chidrenBindMode);
             }
             else if (view is ImageView)
             {
                 view.MouseUpEventHandler -= ChildrenUpEvent;
-                view.MouseDownEventHandler -= ChildrenDownEvent;
-
+                view.MouseDownEventHandler -= ChildrenDownEvent;
+
                 this.BindChidrenEvent(view, chidrenBindMode);
             }
             else if (view is ViewGroup)
@@ -114,20 +114,20 @@
 
                 this.BindChidrenEvent(view, chidrenBindMode);
             }
-        }
-
+        }
+
         /// <summary>
         /// 缁戝畾瀛愭帶浠朵簨浠�(濡傛灉鏄鍚堟帶浠�,鍦ㄥ垵濮嬪寲瀹屾垚鍚�,璋冪敤ChangedChidrenBindMode)
         /// </summary>
         /// <param name="view"></param>
-        /// <param name="chidrenBindMode"></param>
+        /// <param name="chidrenBindMode"></param>
         private void BindChidrenEvent(View view, ChidrenBindMode chidrenBindMode)
         {
             if (chidrenBindMode == ChidrenBindMode.NotBind)
             {
                 return;
             }
-            if (view is ButtonBase)
+            if (view is ButtonBase)
             {
                 //涓哄瓙鎺т欢娣诲姞浜嬩欢
                 ButtonBase button = (ButtonBase)view;
@@ -135,7 +135,7 @@
                 button.MouseDownEventHandler -= ChildrenDownEvent;
 
                 button.ButtonClickEvent += ChildrenUpEvent;
-                button.MouseDownEventHandler += ChildrenDownEvent;
+                button.MouseDownEventHandler += ChildrenDownEvent;
             }
             else if (view is ImageView)
             {
@@ -181,52 +181,52 @@
 
         #region 鈻� 娣诲姞瀛愭帶浠禵________________________
 
-        /// <summary>
-        /// 娣诲姞瀛愭帶浠�
-        /// </summary>
-        /// <param name="view">瀛愭帶浠�</param>
-        /// <param name="chidrenBindMode">缁戝畾妯″紡</param>
-        public void AddChidren(View view, ChidrenBindMode chidrenBindMode = ChidrenBindMode.BindAll)
+        /// <summary>
+        /// 娣诲姞瀛愭帶浠�
+        /// </summary>
+        /// <param name="view">瀛愭帶浠�</param>
+        /// <param name="chidrenBindMode">缁戝畾妯″紡</param>
+        public void AddChidren(View view, ChidrenBindMode chidrenBindMode = ChidrenBindMode.BindAll)
         {
             this.oldBackColor = this.BackgroundColor;
-
+
             base.AddChidren(view);
 
             //缁戝畾瀛愭帶浠朵簨浠�
-            this.BindChidrenEvent(view, chidrenBindMode);
+            this.BindChidrenEvent(view, chidrenBindMode);
         }
 
         #endregion
 
         #region 鈻� 鎺т欢浜嬩欢___________________________
 
-        /// <summary>
-        /// 鐐瑰嚮鎸変笅浜嬩欢(鐐逛寒)
-        /// </summary>
-        /// <param name="sender">Sender.</param>
-        /// <param name="e">E.</param>
-        private void ChildrenDownEvent(object sender, MouseEventArgs e)
+        /// <summary>
+        /// 鐐瑰嚮鎸変笅浜嬩欢(鐐逛寒)
+        /// </summary>
+        /// <param name="sender">Sender.</param>
+        /// <param name="e">E.</param>
+        private void ChildrenDownEvent(object sender, MouseEventArgs e)
         {
-            if (this.UseClickStatu == false|| this.CanClick == false)
+            if (this.UseClickStatu == false || this.CanClick == false)
             {
                 return;
             }
-            this.StartSelectStatuAppeal(ControlCommonResourse.StatuChangedWaitTime);
+            this.StartSelectStatuAppeal(ControlCommonResourse.StatuChangedWaitTime);
         }
 
-        /// <summary>
-        /// 鐐瑰嚮鏉惧紑浜嬩欢
-        /// </summary>
-        /// <param name="sender">Sender.</param>
-        /// <param name="e">E.</param>
-        private void ChildrenUpEvent(object sender, MouseEventArgs e)
+        /// <summary>
+        /// 鐐瑰嚮鏉惧紑浜嬩欢
+        /// </summary>
+        /// <param name="sender">Sender.</param>
+        /// <param name="e">E.</param>
+        private void ChildrenUpEvent(object sender, MouseEventArgs e)
         {
             if (this.CanClick == false)
             {
                 //涓嶅厑璁哥偣鍑�
                 return;
             }
-            if (sender is FrameLayoutControl)
+            if (sender is FrameLayoutStatuControl)
             {
                 //LOG鍑哄姏
                 this.WriteLog();
@@ -235,49 +235,49 @@
             {
                 //璋冪敤濮旀墭
                 ButtonClickEvent?.Invoke(sender, e);
-            }
-            catch (Exception ex)
+            }
+            catch (Exception ex)
             {
                 //鍑虹幇鏈煡閿欒
                 var alert = new ShowMsgControl(ShowMsgType.Error, Language.StringByID(R.MyInternationalizationString.uUnKnownError));
                 alert.Show();
                 //Log鍑哄姏
                 HdlLogLogic.Current.WriteLog(ex);
-            }
+            }
         }
 
-        #endregion
+        #endregion
 
-        #region 鈻� 鍗曞嚮鐘舵�佹樉绀篲______________________
+        #region 鈻� 鍗曞嚮鐘舵�佹樉绀篲______________________
 
-        /// <summary>
-        /// 璁剧疆鍗曞嚮鍚庣粨鏉熺殑鐘舵��
-        /// </summary>
-        public void SetClickNotSelectStatu()
+        /// <summary>
+        /// 璁剧疆鍗曞嚮鍚庣粨鏉熺殑鐘舵��
+        /// </summary>
+        public void SetClickNotSelectStatu()
         {
-            this.IsSelectStatu = false;
+            this.IsSelectStatu = false;
             if (this.SelectStatuEvent != null)
             {
                 this.SelectStatuEvent(false);
                 return;
             }
-
-            this.BackgroundColor = this.oldBackColor;
-        }
-
-        /// <summary>
-        /// 璁剧疆鍗曞嚮鏃剁殑鐘舵��
-        /// </summary>
-        public void SetClickSelectStatu()
+
+            this.BackgroundColor = this.oldBackColor;
+        }
+
+        /// <summary>
+        /// 璁剧疆鍗曞嚮鏃剁殑鐘舵��
+        /// </summary>
+        public void SetClickSelectStatu()
         {
-            this.IsSelectStatu = true;
+            this.IsSelectStatu = true;
             if (this.SelectStatuEvent != null)
             {
                 this.SelectStatuEvent(true);
                 return;
             }
-
-            this.BackgroundColor = UserCenterColor.Current.RowSelectBackColor;
+
+            this.BackgroundColor = UserCenterColor.Current.RowSelectBackColor;
         }
 
         #endregion
@@ -287,7 +287,7 @@
         /// <summary>
         /// 寮哄埗瀹炴柦鎺т欢閫変腑鐘舵�佺殑鐗规晥
         /// </summary>
-        /// <param name="waiTime"></param>
+        /// <param name="waiTime"></param>
         public void StartSelectStatuAppeal(int waiTime)
         {
             if (this.IsSelectStatu == true)
@@ -311,7 +311,7 @@
 
         /// <summary>
         /// 绉婚櫎搴曞眰鎺т欢鑷韩鐨勫崟鍑讳簨浠�
-        /// </summary>
+        /// </summary>
         public void RemoveBaseClickEvent()
         {
             this.MouseUpEventHandler -= ChildrenUpEvent;
@@ -320,7 +320,7 @@
 
         /// <summary>
         /// 鎺т欢鎽ф瘉
-        /// </summary>
+        /// </summary>
         public override void RemoveFromParent()
         {
             this.ButtonClickEvent = null;

--
Gitblit v1.8.0