From 52bbfcf4c9430de96e7a8addb65b18fb97ee43d3 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 22 六月 2022 14:43:03 +0800 Subject: [PATCH] 1 --- Crabtree/SmartHome/HDL/Operation/UserConfig.cs | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs index d1bb9e7..33f7da2 100644 --- a/Crabtree/SmartHome/HDL/Operation/UserConfig.cs +++ b/Crabtree/SmartHome/HDL/Operation/UserConfig.cs @@ -149,7 +149,25 @@ public List<RegionInfoRes> HomeLists = new List<RegionInfoRes> (); - public RegionInfoRes CurrentRegion = new RegionInfoRes (); + //public RegionInfoRes CurrentRegion = new RegionInfoRes (); + + RegionInfoRes currentRegion = new RegionInfoRes (); + public RegionInfoRes CurrentRegion { + set { + currentRegion = value; + //2020-07-22 淇鍒囨崲浣忓畢锛孧AC涓嶅埛鏂伴棶棰� + GatewayMAC = currentRegion.MAC; + + } + get { + if (currentRegion == null) { + currentRegion = new RegionInfoRes (); + } + return currentRegion; + + } + + } public List<GatewayRes> GatewayList = new List<GatewayRes> (); -- Gitblit v1.8.0