黄学彪
2020-06-01 0bf9e65bc3ba98391e7835c922b15baab3c77876
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/ButtonBase.cs
@@ -37,6 +37,10 @@
        {
            set { this.Radius = (uint)Application.GetRealHeight(value); }
        }
        /// <summary>
        /// 声明此变量,旨在子线程也能够去获取一个控件的主键
        /// </summary>
        public string MainKey = string.Empty;
        /// <summary>
        /// 点击的坐标
@@ -55,6 +59,23 @@
        /// 控件触发移动的事件(自身拥有算法,当移动多少像素后,触发事件,注意,该事件可能会频繁的触发)
        /// </summary>
        public Action ButtonHappenMoveEvent = null;
        #endregion
        #region ■ 重写彪哥的属性_____________________
        /// <summary>
        /// 重写Text属性
        /// </summary>
        public new string Text
        {
            //先这么弄先吧
            get { return base.Text == null ? string.Empty : base.Text; }
            set
            {
                base.Text = value == null ? string.Empty : value;
            }
        }
        #endregion
@@ -164,7 +185,8 @@
                this.MouseUpEventHandler -= ButtonBase_MouseUpEventHandler;
                return;
            }
            if (CanClick == true)
            //2020.05.14追加IsFormAdding:界面还在加载中,不能再点击
            if (CanClick == true && ControlCommonResourse.IsFormAdding == false)
            {
                //Log出力
                this.WriteLog(0);
@@ -336,7 +358,7 @@
        /// <summary>
        /// 该控件所属的界面名字
        /// </summary>
        private string formName = null;
        public string formName = null;
        /// <summary>
        /// 控件名字
        /// </summary>