From 23532fa8ad34c89b6d24b01eaef6475fd0aad898 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 15 四月 2020 18:08:24 +0800 Subject: [PATCH] ??????? --- ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs | 19 +++++++------------ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs index 220a7d5..8ee6132 100755 --- a/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs +++ b/ZigbeeApp/Shared/Phone/Category/AddOrEditorSceneForm.cs @@ -159,8 +159,8 @@ //鍦烘櫙鍥剧墖 this.btnScenePic = new ImageView(); btnScenePic.Y = Application.GetRealHeight(46); - btnScenePic.Width = Application.GetMinRealAverage(887); - btnScenePic.Height = Application.GetMinRealAverage(444); + btnScenePic.Width = this.GetPictrueRealSize(887); + btnScenePic.Height = this.GetPictrueRealSize(444); btnScenePic.Radius = (uint)Application.GetRealHeight(17); btnScenePic.Gravity = Gravity.CenterHorizontal; if (this.editorScene == null) @@ -182,7 +182,8 @@ btnZhezhao.Height = btnScenePic.Height; btnZhezhao.Y = btnScenePic.Y; btnZhezhao.Gravity = Gravity.CenterHorizontal; - btnZhezhao.Radius = btnScenePic.Radius; + btnZhezhao.Radius = (uint)Application.GetRealHeight(17); + btnZhezhao.BackgroundColor = UserCenterColor.Current.PictrueZhezhaoColor; framePicBack.AddChidren(btnZhezhao); //鍒嗕韩鐨勫満鏅笉鑳界紪杈� @@ -399,8 +400,6 @@ var btnEditor = rowDevice.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //闅愯棌鍙虫粦鑿滃崟 - rowDevice.HideMenu(); if (device.Type == DeviceType.DimmableLight//璋冨厜鍣� || device.Type == DeviceType.ColorDimmableLight)//褰╃伅 { @@ -590,8 +589,6 @@ var btnEditor = rowDelay.AddEditorControl(); btnEditor.ButtonClickEvent += (sender, e) => { - //闅愯棌鍙虫粦鑿滃崟 - rowDelay.HideMenu(); //寤舵椂鏃堕棿閫夋嫨 var form = new AdjustTargetAddDelayTimeForm(); form.AddForm(data.DelayTime); @@ -942,11 +939,9 @@ //榛樿鍥惧簱 menuContr.AddMenu(Language.StringByID(R.MyInternationalizationString.LocalPicture), () => { - var localPic = new Device.Room.AddRoomSelectPicByLocal(); - UserView.HomePage.Instance.AddChidren(localPic); - UserView.HomePage.Instance.PageIndex += 1; - localPic.Show(); - localPic.action = (imgPath) => + var form = new SelectLocalSceneImageForm(); + form.AddForm(); + form.FinishSelectEvent = (imgPath) => { if (string.IsNullOrEmpty(imgPath) == true) { -- Gitblit v1.8.0