From b68cdc7e103a00d5df73e4b75603be8da1815b4a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 29 四月 2020 13:59:52 +0800 Subject: [PATCH] 上传版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs | 55 ++++++++++++++++++++++++++++++++++++------------------- 1 files changed, 36 insertions(+), 19 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs index affc396..c825e64 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/BaseCommonControl/Base/TextInputBase.cs @@ -49,8 +49,8 @@ /// <summary> /// 鍒濆鍖栨帶浠跺ぇ灏�(涓嶄互骞冲潎鍊艰繘琛岀湡瀹炴暟鍊艰绠�) /// </summary> - /// <param name="i_Width">瀹藉害</param> - /// <param name="i_Height">楂樺害</param> + /// <param name="i_Width">瀹藉害</param> + /// <param name="i_Height">楂樺害</param> /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> public void InitSize(int i_Width, int i_Height, bool real = true) { @@ -58,43 +58,43 @@ { i_Width = Application.GetRealWidth(i_Width); i_Height = Application.GetRealHeight(i_Height); - } - - this.Height = i_Height; + } + + this.Height = i_Height; this.Width = i_Width; } /// <summary> /// 鍒濆鍖栨帶浠跺ぇ灏�(涓嶄互骞冲潎鍊艰繘琛岀湡瀹炴暟鍊艰绠�) /// </summary> - /// <param name="i_Width">瀹藉害</param> + /// <param name="i_Width">瀹藉害</param> /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> public void InitSize(int i_Width, bool real = true) { if (real == true) { i_Width = Application.GetRealWidth(i_Width); - } - - this.Height = ControlCommonResourse.NormalControlHeight; + } + + this.Height = ControlCommonResourse.NormalControlHeight; this.Width = i_Width; } /// <summary> /// 鍒濆鍖栨帶浠跺ぇ灏�(浠ュ钩鍧囧�艰繘琛岀湡瀹炴暟鍊艰绠�) /// </summary> - /// <param name="i_Width">瀹藉害</param> - /// <param name="i_Height">楂樺害</param> + /// <param name="i_Width">瀹藉害</param> + /// <param name="i_Height">楂樺害</param> /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> public void InitAvgSize(int i_Width, int i_Height, bool real = true) { if (real == true) { - i_Width = Application.GetMinRealAverage(i_Width); - i_Height = Application.GetMinRealAverage(i_Height); - } - - this.Height = i_Height; + i_Width = this.GetPictrueRealSize(i_Width); + i_Height = this.GetPictrueRealSize(i_Height); + } + + this.Height = i_Height; this.Width = i_Width; } @@ -111,11 +111,17 @@ { if (e.Focus == false) { - btnLineTemp.BackgroundColor = UserCenterColor.Current.ButtomLine; + if (btnLineTemp != null) + { + btnLineTemp.BackgroundColor = UserCenterColor.Current.ButtomLine; + } } else { - btnLineTemp.BackgroundColor = UserCenterColor.Current.TextFrameSelectColor; + if (btnLineTemp != null) + { + btnLineTemp.BackgroundColor = UserCenterColor.Current.TextFrameSelectColor; + } } } @@ -135,8 +141,19 @@ return; } //Y杞撮噸缃� - this.Y = UserCenterLogic.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); + this.Y = HdlControlLogic.Current.GetControlChidrenYaxis(this.Parent.Height, this.Height, alignment, Space); } + + /// <summary> + /// 璁$畻鍥剧墖鐨勭湡瀹為珮瀹藉害 + /// </summary> + /// <param name="i_size"></param> + /// <returns></returns> + public int GetPictrueRealSize(int i_size) + { + return HdlControlLogic.Current.GetPictrueRealSize(i_size); + } + #endregion } } -- Gitblit v1.8.0