From 48ba446936b51fffafa7c3600c0dadc6ac0e8c20 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期五, 10 七月 2020 10:52:13 +0800 Subject: [PATCH] 2020-07-10-01 --- ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs index 7bb41b3..f8976bc 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/UserMain/UserMainForm.cs @@ -50,17 +50,20 @@ /// </summary> public void ShowForm() { + this.FormID = "UserMainForm"; + //鐗规畩澶勭悊锛氭仮澶嶅彲鍏抽棴杩涘害鏉★紝鍒棶涓轰粈涔堬紝鎴戜篃涓嶇煡閬撲负浠�涔堬紝浠ラ槻涓囦竴鑰屽凡 ProgressBar.SetCloseBarFlag(false); - //鍒濆鍖栨鏋� - this.InitForm(); + //鍒濆鍖栧ご閮ㄦ帶浠� + this.InitTopFrameLayout(); + //鍒濆鍖栦腑閮ㄦ帶浠� + this.InitBodyFrameLayout(); //绉婚櫎杩斿洖閿� base.RemoveBackButton(); //body鍗犲畬鏁翠釜灞忓箷,闄や簡搴曢儴鑿滃崟 bodyFrameLayout.Y = 0; - bodyFrameLayout.Height = ControlCommonResourse.TopMenuFrameHeight + ControlCommonResourse.TopFrameHeight - + ControlCommonResourse.BodyFrameHeight - ControlCommonResourse.BottomFrameHeight; + bodyFrameLayout.Height = this.Height; bodyFrameLayout.BackgroundColor = UserCenterColor.Current.BlackBackGround; //鍒濆鍖栦腑閮ㄦ帶浠� @@ -132,9 +135,9 @@ { //鐢ㄦ埛澶村儚 this.btnUserIcon = new ImageView(); - btnUserIcon.Height = Application.GetMinRealAverage(280); - btnUserIcon.Width = Application.GetMinRealAverage(280); - btnUserIcon.Radius = (uint)Application.GetMinRealAverage(280) / 2; + btnUserIcon.Height = this.GetPictrueRealSize(280); + btnUserIcon.Width = this.GetPictrueRealSize(280); + btnUserIcon.Radius = (uint)this.GetPictrueRealSize(280) / 2; btnUserIcon.X = Application.GetRealWidth(121); if (Common.Config.Instance.Home.IsVirtually == false) { @@ -285,15 +288,16 @@ frame.ButtonClickEvent += (sender, e) => { HdlGatewayLogic.Current.RefreshAppOldSelectGatewayId(); + //鎷ユ湁缃戝叧,鎴栬�呮槸铏氭嫙浣忓畢,鍒欒繘鍏ヨ澶囧垪琛ㄧ晫闈� if (string.IsNullOrEmpty(GatewayResourse.AppOldSelectGatewayId) == false || Common.Config.Instance.Home.IsVirtually == true) { - //铏氭嫙浣忓畢鍥哄畾杩涘叆杩欎釜鐣岄潰 var form = new Device.DeviceListMainForm(); form.AddForm(); } else { + //娌℃湁缃戝叧,鍒欒繘鍏ョ綉鍏冲垪琛ㄧ晫闈� var form = new GatewayManage.GatewayListForm(); form.AddForm(); } -- Gitblit v1.8.0