| | |
| | | { |
| | | Y = Application.GetRealHeight(46), |
| | | Height = Application.GetRealHeight(446 - 46), |
| | | LineColor = ZigbeeColor.Current.GXCGrayBackgroundColor |
| | | LineColor = ZigbeeColor.Current.GXCGrayBackgroundColor, |
| | | Tag= scene |
| | | }; |
| | | AddChidren(sceneRowLayout); |
| | | |
| | |
| | | Radius = (uint)Application.GetRealHeight(17) |
| | | }; |
| | | sceneRowLayout.AddChidren(sceneImg); |
| | | sceneImg.SetViewShadow(true); |
| | | //sceneImg.SetViewShadow(true); |
| | | |
| | | var leftFL = new FrameLayout |
| | | { |
| | |
| | | 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) => |
| | |
| | | { |
| | | room.RemoveScene(scene); |
| | | //RefreshBodyView(); |
| | | RemoveViewByTag((sender as Button).Tag); |
| | | RemoveFromParent(); |
| | | } |
| | | //0 移除失败 |
| | | else if (removeSceneAllData.removeSceneData.Result == 0) |
| | |
| | | { |
| | | room.RemoveScene(scene); |
| | | //RefreshBodyView(); |
| | | RemoveViewByTag((sender as Button).Tag); |
| | | RemoveFromParent(); |
| | | CommonPage.Instance.ShowErrorInfoAlert(R.MyInternationalizationString.TheSceneIsNull); |
| | | return; |
| | | } |