From c26d742cef5ac268ca902b6605512b6476a26bc2 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 05 十二月 2019 15:22:27 +0800
Subject: [PATCH] 2019.12.5
---
ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs
index 35d3ee2..e1e988d 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SceneCategoryView.cs
@@ -60,7 +60,8 @@
{
Y = Application.GetRealHeight(46),
Height = Application.GetRealHeight(446 - 46),
- LineColor = ZigbeeColor.Current.GXCGrayBackgroundColor
+ LineColor = ZigbeeColor.Current.GXCGrayBackgroundColor,
+ Tag= scene
};
AddChidren(sceneRowLayout);
@@ -73,7 +74,7 @@
Radius = (uint)Application.GetRealHeight(17)
};
sceneRowLayout.AddChidren(sceneImg);
- sceneImg.SetViewShadow(true);
+ //sceneImg.SetViewShadow(true);
var leftFL = new FrameLayout
{
@@ -201,12 +202,12 @@
if (room.IsLove)
{
Shared.Common.Room.CurrentRoom.GetLoveRoom().DeleteScene(scene);
- RemoveViewByTag((sender as Button).Tag);
+ RemoveFromParent();
}
else
{
var tip = new CustomAlert { };
- AddChidren(tip);
+ Common.CommonPage.Instance.AddChidren(tip);
tip.Show(Language.StringByID(R.MyInternationalizationString.ConfirmDelete));
tip.ResultEventHandler += async (e1) =>
@@ -225,7 +226,7 @@
{
room.RemoveScene(scene);
//RefreshBodyView();
- RemoveViewByTag((sender as Button).Tag);
+ RemoveFromParent();
}
//0 绉婚櫎澶辫触
else if (removeSceneAllData.removeSceneData.Result == 0)
@@ -238,7 +239,7 @@
{
room.RemoveScene(scene);
//RefreshBodyView();
- RemoveViewByTag((sender as Button).Tag);
+ RemoveFromParent();
CommonPage.Instance.ShowErrorInfoAlert(R.MyInternationalizationString.TheSceneIsNull);
return;
}
--
Gitblit v1.8.0