From 321d2f007c7f85e933b3f90266af07e10c6b4658 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期四, 03 十二月 2020 21:06:20 +0800 Subject: [PATCH] 2020-12-03 1.修改推送ID保存方法 --- HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 deletions(-) diff --git a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs index 09d3f5d..2bb3b9b 100644 --- a/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs +++ b/HDL_ON/UI/UI2/2-Classification/ClassificationPage.cs @@ -234,10 +234,13 @@ { Width = Application.GetRealWidth(343), Height = Application.GetRealWidth(192),//2020-12-01 鎴块棿鍥剧墖姣斾緥鏀瑰洖16:9 - ImagePath = room.backgroundImage, + //ImagePath = room.backgroundImage, Radius = (uint)Application.GetRealWidth(12), }; roomView.AddChidren(roomViewbg); + + //2020-12-03 淇敼鍥剧墖鍔犺浇鏂规硶 + ImageUtlis.Current.LoadLocalOrNetworkImages(room.backgroundImage, roomViewbg); var roomViewbgColor = new Button() { @@ -341,7 +344,7 @@ var btnAllClose = new Button() { X = Application.GetRealWidth(282), - Y = Application.GetRealHeight(126), + Y = Application.GetRealWidth(126), Width = Application.GetMinRealAverage(58), Height = Application.GetMinRealAverage(58), UnSelectedImagePath = "Classification/Room/AllCloseIcon.png", @@ -359,11 +362,16 @@ roomViewbgColor.MouseUpEventHandler += (sender, e) => { - Action<Room > ReloadRoomName = (obj) => { - btnFloorAndRoomName.Text = obj.floorName + obj.name; + Action ReloadRoomName = () => { + btnFloorAndRoomName.Text = room.floorName + room.name; }; - var view = new RoomPage(room, ReloadRoomName); + //鎴块棿鍒犻櫎浜嬩欢 + Action deleteAction = () => { + roomView.RemoveFromParent(); + }; + + var view = new RoomPage(room, ReloadRoomName, deleteAction); MainPage.BasePageView.AddChidren(view); view.LoadPage(); MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; -- Gitblit v1.8.0