From 66a9965c44ecc32a6696abca876ab9d1cd091584 Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期五, 28 二月 2020 15:25:13 +0800 Subject: [PATCH] 2020.2.28 --- ZigbeeApp/Shared/Phone/Device/Logic/TemplateIgnore.cs | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TemplateIgnore.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TemplateIgnore.cs index 9496be9..f410c1d 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/TemplateIgnore.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/TemplateIgnore.cs @@ -28,7 +28,7 @@ var titleName = new Button { - TextSize = 16, + TextSize = 17, TextColor = ZigbeeColor.Current.LogicTextBlackColor, TextAlignment = TextAlignment.CenterLeft, X = Application.GetRealWidth(176), @@ -36,6 +36,7 @@ Height = Application.GetRealHeight(69), Y = Application.GetRealHeight(92), Text = name, + IsBold = true, }; topRowLayout.AddChidren(titleName); @@ -113,6 +114,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.LogicTextBlackColor, Tag = intvalue, + TextSize = 15, }; timeRow.AddChidren(timeBtn); @@ -157,8 +159,18 @@ } } - int selectIndex1 = timevalue / 60; - int selectIndex2 = timevalue % 60; + int selectIndex1 = 0; + int selectIndex2 = 0; + if (timevalue > 3600) + { + selectIndex1 = 60; + selectIndex2 = timevalue - 3600; + } + else + { + selectIndex1 = timevalue / 60; + selectIndex2 = timevalue % 60; + } PickerView.ShowNormal(minuteList, secondList, new List<string>(), (Index1, Index2, Index3) => { selectetimedvalue = int.Parse(minuteList[Index1].Split(' ')[0]) * 60 + int.Parse(secondList[Index2].Split(' ')[0]); @@ -194,6 +206,7 @@ BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, TextID = MyInternationalizationString.Save, TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, + TextSize = 16, }; saveFrameLayout.AddChidren(btnsave); btnsave.MouseUpEventHandler += (sender, e) => @@ -232,9 +245,10 @@ { if (!edit) { - var alert = new Alert(Language.StringByID(MyInternationalizationString.Prompt), - Language.StringByID(MyInternationalizationString.selectdevicestatuscondition), - Language.StringByID(MyInternationalizationString.complete)); + + var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Normal, + Language.StringByID(MyInternationalizationString.delaytip), + Language.StringByID(MyInternationalizationString.confrim)); alert.Show(); return; } -- Gitblit v1.8.0