| | |
| | | //ShowFunction.EnergyMonitoring, |
| | | //ShowFunction.FreshAir,ShowFunction.DoorLock, |
| | | //ShowFunction.Panel,ShowFunction.SecurityMonitoring, |
| | | //ShowFunction.Sensor,ShowFunction.VideoIntercom |
| | | ShowFunction.Sensor//,ShowFunction.VideoIntercom |
| | | }); |
| | | instance.SaveResidenceData(); |
| | | } |
| | |
| | | } |
| | | instance.residenceImage = "Classification/Room/Roombg.png"; |
| | | //初始化住宅功能数据 |
| | | SpatialInfo.CurrentSpatial.InitRoomFunction(); |
| | | SpatialInfo.CurrentSpatial.InitRoomListFunctions(); |
| | | |
| | | } |
| | | return instance; |
| | |
| | | instance = null; |
| | | ins_OidList = null; |
| | | HomeGateway = null; |
| | | //重置网关状态 |
| | | DriverLayer.Control.Ins.GatewayOnline = false; |
| | | SpatialInfo.CurrentSpatial.Clear(); |
| | | FunctionList.List.Clear(); |
| | | |
| | |
| | | /// <returns></returns> |
| | | static byte[] ReadResidenceInfo() |
| | | { |
| | | MainPage.Log("get file Instance "); |
| | | var fileName = "DB_ResidenceData"; |
| | | FileStream fs = null; |
| | | try |
| | |
| | | } |
| | | finally |
| | | { |
| | | MainPage.Log("get file "); |
| | | try |
| | | { |
| | | if (fs != null) |