From 23fb45dd846ed8b62304c408c6bbe64265d4ac8b Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期五, 20 十二月 2019 18:57:16 +0800 Subject: [PATCH] 代码合并 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs index 1f8b11b..717582e 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/FrameLayoutControls/FrameRowControl.cs @@ -304,5 +304,56 @@ } #endregion + + #region 鈻� 娣诲姞涓婇儴鐨勬樉绀烘枃鏈琠________________ + + /// <summary> + /// 娣诲姞涓婇儴鐨勬樉绀烘枃鏈�(濡傛灉鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞鏂囨湰) + /// </summary> + /// <param name="i_caption">鍐呭</param> + /// <param name="i_width">瀹藉害</param> + /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> + /// <returns></returns> + public NormalViewControl AddTopView(string i_caption, int i_width, bool real = true) + { + if (real == true) + { + i_width = Application.GetRealWidth(i_width); + } + var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(60), false); + contr.TextSize = 15; + contr.Y = Application.GetRealHeight(12) + this.chidrenYaxis; + this.AddChidren(contr, ChidrenBindMode.BindEventOnly); + + return contr; + } + + #endregion + + #region 鈻� 娣诲姞涓嬮儴鐨勬樉绀烘枃鏈琠________________ + + /// <summary> + /// 娣诲姞涓嬮儴鐨勬樉绀烘枃鏈�(濡傛灉鏈夊浘鏍囷紝鍒欏厛娣诲姞鍥炬爣锛屽啀娣诲姞鏂囨湰) + /// </summary> + /// <param name="i_caption">鍐呭</param> + /// <param name="i_width">瀹藉害</param> + /// <param name="real">鏄惁璁$畻鐪熷疄鍊�</param> + /// <returns></returns> + public NormalViewControl AddBottomView(string i_caption, int i_width, bool real = true) + { + if (real == true) + { + i_width = Application.GetRealWidth(i_width); + } + var contr = this.AddLeftCaption(i_caption, i_width, Application.GetRealHeight(50), false); + contr.Y = Application.GetRealHeight(72) + this.chidrenYaxis; + contr.TextSize = 12; + contr.TextColor = UserCenterColor.Current.TextGrayColor1; + this.AddChidren(contr, ChidrenBindMode.BindEventOnly); + + return contr; + } + + #endregion } } -- Gitblit v1.8.0