From 23ca39219c5075d829d14137cb54896a24ae513d Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 04 十二月 2020 13:57:08 +0800
Subject: [PATCH] 20201204

---
 HDL_ON/UI/UI2/1-HomePage/HomePage.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
index 9c2a22e..5099f97 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePage.cs
@@ -144,8 +144,7 @@
                     System.Threading.Tasks.Task.Run(() =>
                         {
                             //DriverLayer.Control.Ins.SearchLoaclGateway();
-                            //MainPage.GetRoomList();
-                            MainPage.GetDeviceList();
+                            MainPage.InitializationData();
                         });
                 };
 #endif
@@ -518,7 +517,7 @@
                         Width = Application.GetRealWidth(164),
                         Height = Application.GetRealWidth(122),
                         Tag = scene.sid,
-                        BackgroundImagePath = (scene as Scene).ImagePath,
+                        BackgroundImagePath = scene.ImagePath,
                     };
                     rowView.AddChidren(functionView);
 
@@ -880,9 +879,9 @@
                     Action refreshAction = () => {
                         btnName.Text = scene.name;
                         btnZone.Text = scene.GetRoomListName();
-                        view.BackgroundImagePath = (scene as Scene).ImagePath;
+                        view.BackgroundImagePath = scene.ImagePath;
                     };
-                    var aep = new SceneEditPage(scene as Scene, backAction);
+                    var aep = new SceneEditPage(scene, backAction);
                     MainPage.BasePageView.AddChidren(aep);
                     aep.LoadPage(StringId.EditScene, refreshAction);
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;

--
Gitblit v1.8.0