File was renamed from ZigbeeApp/Shared/Phone/CommonForm/EditorCommonForm.cs |
| | |
| | | using Shared.Phone.UserCenter; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | |
| | | namespace Shared.Phone |
| | | { |
| | | /// <summary> |
| | | /// 个人中心的共通基层画面,继承于此共通的画面,请使用AddForm()函数, |
| | | /// 或者AddFromAndRemoveNowForm()函数实现添加画面,然后在各自的画面中, |
| | | /// 或者AddFormAndCloseNowForm()函数实现添加画面,然后在各自的画面中, |
| | | /// 实现一个ShowForm()的函数(参数由添加画面时,使用的函数的参数指定) |
| | | /// </summary> |
| | | public class EditorCommonForm : CommonFormBase |
| | |
| | | |
| | | //TopMenuFrameLayout做成 |
| | | topMenuFrameLayout = new NormalFrameLayout(); |
| | | topMenuFrameLayout.Height = ControlCommonResourse.TopMenuFrameHeight; |
| | | topMenuFrameLayout.Height = HdlControlResourse.TopMenuFrameHeight; |
| | | topMenuFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout; |
| | | topMenuFrameLayout.Name = "topMenuFrameLayout"; |
| | | this.AddChidren(topMenuFrameLayout); |
| | | |
| | | //TopFrameLayout做成 |
| | | topFrameLayout = new NormalFrameLayout(); |
| | | topFrameLayout.Height = ControlCommonResourse.TopFrameHeight; |
| | | topFrameLayout.Height = HdlControlResourse.TopFrameHeight; |
| | | topFrameLayout.BackgroundColor = UserCenterColor.Current.TopFrameLayout; |
| | | topFrameLayout.Y = topMenuFrameLayout.Bottom; |
| | | topFrameLayout.Name = "topFrameLayout"; |
| | |
| | | bodyFrameLayout.RemoveAll(); |
| | | } |
| | | bodyFrameLayout = new NormalFrameLayout(); |
| | | bodyFrameLayout.Height = ControlCommonResourse.BodyFrameHeight; |
| | | bodyFrameLayout.Height = HdlControlResourse.BodyFrameHeight; |
| | | bodyFrameLayout.Y = topFrameLayout.Bottom; |
| | | bodyFrameLayout.BackgroundColor = UserCenterColor.Current.BodyFrameLayout; |
| | | bodyFrameLayout.Name = "bodyFrameLayout"; |
| | |
| | | public override void AddForm(params object[] parameter) |
| | | { |
| | | //界面加载中 |
| | | ControlCommonResourse.IsFormAdding = true; |
| | | HdlControlResourse.IsFormAdding = true; |
| | | |
| | | base.AddForm(parameter); |
| | | |
| | |
| | | this.LoadShowFormMethod(parameter); |
| | | |
| | | //界面加载结束 |
| | | ControlCommonResourse.IsFormAdding = false; |
| | | HdlControlResourse.IsFormAdding = false; |
| | | } |
| | | |
| | | #endregion |
| | |
| | | bodyFrameLayout.AddChidren(btnHelp); |
| | | //底线 |
| | | int lineWidth = btnHelp.GetRealWidthByText(); |
| | | var btnLine = new NormalViewControl(lineWidth, ControlCommonResourse.BottomLineHeight, false); |
| | | var btnLine = new NormalViewControl(lineWidth, HdlControlResourse.BottomLineHeight, false); |
| | | btnLine.BackgroundColor = UserCenterColor.Current.TextOrangeColor; |
| | | btnLine.Gravity = Gravity.CenterHorizontal; |
| | | btnLine.Y = btnHelp.Bottom - Application.GetRealHeight(8); |
| | |
| | | frame.AddChidren(btnReLoad); |
| | | btnReLoad.ButtonClickEvent += (sender, e) => |
| | | { |
| | | //点击重新加载时,允许再次联网 |
| | | HdlWifiLogic.Current.CanAccessHttp = true; |
| | | |
| | | //清除全部控件 |
| | | this.ClearBodyFrame(); |
| | | |