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/AddScenePage.cs | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/AddScenePage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/AddScenePage.cs index 1c4c759..2f34fb8 100755 --- a/ZigbeeApp/Shared/Phone/Device/Logic/AddScenePage.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/AddScenePage.cs @@ -39,7 +39,7 @@ var titleName = new Button { - TextSize = 16, + TextSize = 17, TextColor = ZigbeeColor.Current.LogicTextBlackColor, TextAlignment = TextAlignment.CenterLeft, X = Application.GetRealWidth(160), @@ -47,6 +47,7 @@ Height = Application.GetRealHeight(69), Y = Application.GetRealHeight(92), TextID = MyInternationalizationString.addscene, + IsBold = true, }; topRowLayout.AddChidren(titleName); @@ -88,6 +89,7 @@ Y = Application.GetRealHeight(92), //TextID = MyInternationalizationString.customroom, Text = Config.Instance.Home.GetCurrentFloorName, + TextSize = 14, }; topRowLayout.AddChidren(foolrname); var dropdown = new Button @@ -134,7 +136,7 @@ }; this.AddChidren(saveframeLayout); - var btnsave = new Button + var btnsave = new Button { X = Application.GetRealWidth(85), Height = Application.GetRealHeight(130), @@ -143,6 +145,7 @@ BackgroundColor = ZigbeeColor.Current.LogicBtnSaveBackgroundColor, TextID = MyInternationalizationString.Save, TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor, + TextSize = 16, }; saveframeLayout.AddChidren(btnsave); @@ -150,9 +153,9 @@ { if (clickTag == "no" || tempScene == null) { - 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.scenetip), + Language.StringByID(MyInternationalizationString.confrim)); alert.Show(); return; } @@ -200,6 +203,7 @@ TextColor = ZigbeeColor.Current.LogicTextBlackColor, X = Application.GetRealWidth(80), TextID = MyInternationalizationString.selecfoolr, + TextSize = 14, }; foolrbjicon.AddChidren(btnfoolrtext); @@ -241,6 +245,7 @@ TextColor = ZigbeeColor.Current.LogicBtnCancelColor, Tag = foolr.Key, X = btnfoolricon.Right + Application.GetRealWidth(12), + TextSize = 14, }; foolrRowLayout.AddChidren(btnfoolrname); if (foolrname.Text == foolr.Value) @@ -347,9 +352,14 @@ SceneView(room.SceneUIList); } - + EventHandler<MouseEventArgs> roomclick = (sender, e) => { + clickTag = "no"; + tempScene = null; + clickbutton = null; + clickbutton = new Button(); + roombjButton.IsSelected = false; roombjButton = roombjBtn; roombjBtn.IsSelected = true; @@ -409,6 +419,7 @@ TextAlignment = TextAlignment.CenterLeft, TextColor = ZigbeeColor.Current.LogicTextBlackColor, SelectedTextColor = ZigbeeColor.Current.LogicAddColor, + TextSize = 14, }; sceneRow.AddChidren(scenename); -- Gitblit v1.8.0