From f1c3921b08bb22ac6f5db22d620e01d7e8e5c49f Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期一, 30 十二月 2019 13:32:33 +0800 Subject: [PATCH] 2019-12-30-1 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs | 31 ++++++++++--------------------- 1 files changed, 10 insertions(+), 21 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs index 7b0c5ef..e4f7202 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameLayoutControl.cs @@ -24,6 +24,10 @@ /// </summary> public bool UseClickStatu = true; /// <summary> + /// 鑳藉惁鐐瑰嚮 + /// </summary> + public bool CanClick = true; + /// <summary> /// 鍘熸潵鐨勮儗鏅壊 /// </summary> private uint oldBackColor = 0; @@ -35,17 +39,6 @@ /// 瀛愭帶浠禮杞村亸绉婚噺(鍏遍�氬畾涔夎�屽凡) /// </summary> public int chidrenYaxis = 0; - - /// <summary> - /// 鍦嗚搴�(瀹夊崜鍜孖OS鎴栬闇�瑕侀缂栬瘧) - /// </summary> - public uint RadiusEx - { - set - { - this.Radius = value; - } - } #endregion @@ -61,14 +54,6 @@ this.MouseUpEventHandler += ChildrenUpEvent; this.MouseDownEventHandler += ChildrenDownEvent; - } - - /// <summary> - /// 鍋氭垚涓�涓櫘閫氱殑FrameLayout鎺т欢 - /// </summary> - /// <param name="flage">娌″暐鐢ㄧ殑涓滆タ</param> - public FrameLayoutControl(bool flage) - { } #endregion @@ -202,7 +187,6 @@ //缁戝畾瀛愭帶浠朵簨浠� this.BindChidrenEvent(view, chidrenBindMode); - } #endregion @@ -216,7 +200,7 @@ /// <param name="e">E.</param> private void ChildrenDownEvent(object sender, MouseEventArgs e) { - if (this.UseClickStatu == false) + if (this.UseClickStatu == false|| this.CanClick == false) { return; } @@ -230,6 +214,11 @@ /// <param name="e">E.</param> private void ChildrenUpEvent(object sender, MouseEventArgs e) { + if (this.CanClick == false) + { + //涓嶅厑璁哥偣鍑� + return; + } if (sender is FrameLayoutControl) { //LOG鍑哄姏 -- Gitblit v1.8.0