From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001 From: xm <1271024303@qq.com> Date: 星期二, 21 七月 2020 09:46:53 +0800 Subject: [PATCH] 请合并最新多功能面板代码 --- ZigbeeApp/Shared/Phone/Device/Logic/LogicView/CompleteView.cs | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/CompleteView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/CompleteView.cs new file mode 100755 index 0000000..100b8cb --- /dev/null +++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicView/CompleteView.cs @@ -0,0 +1,73 @@ +锘縰sing System; +using System.Collections.Generic; +using Shared.Common; +using Shared.R; +using ZigBee.Device; +namespace Shared.Phone.Device.Logic +{ + public class CompleteView + { + public FrameLayout fraView = new FrameLayout + { + Width = Application.GetRealWidth(1080), + Height = Application.GetRealHeight(140 + 320 + 70), + Y = Application.GetRealHeight(Method.H - 530), + BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor, + // Radius = (uint)Application.GetRealHeight(60), + }; + #region -------鍙栨秷 瀹屾垚 + public RowLayout titleRow = new RowLayout + { + Height = Application.GetRealHeight(140), + LineColor = ZigbeeColor.Current.LogicRowLayoutLineColor, + }; + public Button Btncancel = new Button + { + TextID = MyInternationalizationString.cancel, + TextColor = ZigbeeColor.Current.LogicBtnCancelColor, + Height = Application.GetRealHeight(140), + Width = Application.GetRealWidth(150), + X = Application.GetRealWidth(80), + TextAlignment = TextAlignment.CenterLeft, + TextSize = 14, + + }; + public Button Btntitle = new Button + { + //TextID = MyInternationalizationString.type, + TextColor = ZigbeeColor.Current.LogicBtnTypeColor, + Height = Application.GetRealHeight(140), + Width = Application.GetRealWidth(580), + TextAlignment = TextAlignment.Center, + X = Application.GetRealWidth(230+20), + TextSize = 16, + + }; + public Button Btncomplete = new Button + { + TextID = MyInternationalizationString.complete, + TextColor = ZigbeeColor.Current.LogicBtnCompleteColor, + Height = Application.GetRealHeight(140), + Width = Application.GetRealWidth(150), + TextAlignment = TextAlignment.CenterRight, + X = Application.GetRealWidth(850), + TextSize = 14, + + }; + #endregion + + public FrameLayout Show(int n) + { + //n澶氬皯琛� + fraView.SetCornerWithSameRadius(Application.GetRealHeight(58), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight); + fraView.Height = Application.GetRealHeight(1+140 + 70 + 160 * n);//1浣滅敤灏辨槸瑕嗙洊搴曡壊 + fraView.Y = Application.GetRealHeight(1920 - 140 - 70 - 160 * n); + fraView.AddChidren(titleRow); + fraView.AddChidren(Btncancel); + fraView.AddChidren(Btntitle); + fraView.AddChidren(Btncomplete); + return fraView; + } + + } +} -- Gitblit v1.8.0