| | |
| | | using HDL_ON.UI.CSS; |
| | | using HDL_ON.Entity; |
| | | using HDL_ON.DriverLayer; |
| | | using System; |
| | | |
| | | namespace HDL_ON.UI |
| | | { |
| | |
| | | ///// <summary> |
| | | ///// 获取支持文本 |
| | | ///// </summary> |
| | | //Button btnSupportText; |
| | | Button btnSupportText; |
| | | |
| | | /// <summary> |
| | | /// 关于On文本 |
| | |
| | | { |
| | | btnExit.Text = "退出"; |
| | | } |
| | | //else if (Language.CurrentLanguage == "russian") |
| | | //{ |
| | | // btnExit.Text = "выход"; |
| | | //} |
| | | else |
| | | { |
| | | btnExit.Text = "Exit"; |
| | |
| | | public void LoadContentView() |
| | | { |
| | | contentView.RemoveAll(); |
| | | |
| | | var residenceFunctionCount = 0; |
| | | |
| | | #region 住宅信息区域 |
| | | //if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare && DB_ResidenceData.Instance.GatewayType == 1) |
| | |
| | | |
| | | if (!DB_ResidenceData.Instance.CurrentRegion.isOtherShare) |
| | | { |
| | | residenceFunctionCount++; |
| | | #region ---住宅管理区域 |
| | | residenceManageView = new FrameLayout() |
| | | { |
| | |
| | | residenceManageView.AddChidren(btnResidenceManageText); |
| | | #endregion |
| | | |
| | | residenceFunctionCount++; |
| | | #region ---成员区域 |
| | | residenceMemberView = new FrameLayout() |
| | | { |
| | |
| | | |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | residenceFunctionCount++; |
| | | #region ---添加功能区域 |
| | | residenceAddFunctionView = new FrameLayout() |
| | | { |
| | |
| | | }; |
| | | residenceAddFunctionView.AddChidren(btnResidenceAddFunctionText); |
| | | #endregion |
| | | |
| | | residenceFunctionCount++; |
| | | #region ---组合调光 |
| | | //var faceManagementView = new FrameLayout() |
| | | //{ |
| | | // X = Application.GetRealWidth(28 - 24), |
| | | // Y = residenceManageView.Bottom, |
| | | // Width = Application.GetRealWidth(64 + 48), |
| | | // Height = Application.GetRealWidth(64), |
| | | //}; |
| | | //residenceInfoView.AddChidren(faceManagementView); |
| | | |
| | | //var btnFaceManagementIcon = new Button |
| | | //{ |
| | | // Gravity = Gravity.CenterHorizontal, |
| | | // Y = Application.GetRealHeight(5), |
| | | // Width = Application.GetMinRealAverage(30), |
| | | // Height = Application.GetMinRealAverage(30), |
| | | // UnSelectedImagePath = "PersonalCenter/CombinedDimmingIcon.png", |
| | | //}; |
| | | //faceManagementView.AddChidren(btnFaceManagementIcon); |
| | | //var btnFaceManagementText = new Button() |
| | | //{ |
| | | // Y = btnResidenceManageIcon.Bottom, |
| | | // Height = Application.GetRealHeight(29), |
| | | // TextID = StringId.CombinedDimming, |
| | | // TextAlignment = TextAlignment.Center, |
| | | // TextColor = CSS_Color.FirstLevelTitleColor, |
| | | // TextSize = CSS_FontSize.PromptFontSize_FirstLevel |
| | | //}; |
| | | //faceManagementView.AddChidren(btnFaceManagementText); |
| | | |
| | | //EventHandler<MouseEventArgs> eventHandler = (sender, e) => { |
| | | // var page = new CombinedDimmingListPage(); |
| | | // MainPage.BasePageView.AddChidren(page); |
| | | // page.LoadPage(); |
| | | // MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | //}; |
| | | //faceManagementView.MouseUpEventHandler = eventHandler; |
| | | //btnFaceManagementText.MouseUpEventHandler = eventHandler; |
| | | //btnFaceManagementIcon.MouseUpEventHandler = eventHandler; |
| | | #endregion |
| | | |
| | | } |
| | | } |
| | | else |
| | |
| | | // BackgroundColor = 0xFFFF0000, |
| | | //}; |
| | | //supportView.AddChidren(supView); |
| | | //supView.MouseUpEventHandler = (sender, e) => { |
| | | //supView.MouseUpEventHandler = (sender, e) => |
| | | //{ |
| | | // Dialog dialog = new Dialog(); |
| | | |
| | | // var bodyView = new FrameLayout(); |
| | |
| | | // TextAlignment = TextAlignment.CenterLeft, |
| | | // TextSize = CSS_FontSize.SubheadingFontSize, |
| | | // }; |
| | | // btnClose.MouseUpEventHandler = (sender, e) => { |
| | | // btnClose.MouseUpEventHandler = (sender9, e0) => |
| | | // { |
| | | // dialog.Close(); |
| | | // }; |
| | | // bodyView.AddChidren(btnClose); |