From cda2410f9c29f2fadc16e9de38ccae95b75a89dd Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 09 六月 2021 10:51:13 +0800 Subject: [PATCH] 1 --- HDL_ON/Entity/FunctionList.cs | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 41 insertions(+), 3 deletions(-) diff --git a/HDL_ON/Entity/FunctionList.cs b/HDL_ON/Entity/FunctionList.cs index 9f60e5f..62b1fee 100644 --- a/HDL_ON/Entity/FunctionList.cs +++ b/HDL_ON/Entity/FunctionList.cs @@ -108,8 +108,19 @@ { return Functions.FindAll((obj) => obj.spk == SPK.IrModule); } - #endregion + + /// <summary> + /// 闊充箰鍒楄〃 + /// </summary> + /// <returns></returns> + public List<Function> GetMusicList() + { + var spkList = SPK.MusicSpkList(); + return Functions.FindAll((obj) => spkList.Contains(obj.spk)); + } + + /// <summary> /// 鐜浼犳劅鍣ㄥ垪琛� /// </summary> @@ -132,6 +143,25 @@ /// </summary> public UI.UI2.FuntionControlView.Video.VideoClouds videoIntercom; + List<Function> _OtherBrandFunction; + /// <summary> + /// 绗笁鏂瑰搧鐗屽姛鑳� + /// </summary> + public List<Function> OtherBrandFunction + { + get + { + if(_OtherBrandFunction == null) + { + _OtherBrandFunction = new List<Function>(); + var spkList = SPK.GetAll3tySPK(); + _OtherBrandFunction = Functions.FindAll((obj) => spkList.Contains(obj.spk)); + } + return _OtherBrandFunction; + } + } + + /// <summary> /// 鍦烘櫙鍒楄〃 /// </summary> @@ -140,7 +170,7 @@ /// <summary> /// 瀹夐槻鍒楄〃 /// </summary> - public List<Security> securities = new List<Security>(); + public List<SecurityAlarm> securities = new List<SecurityAlarm>(); /// <summary> /// 鍔犺浇鍔熻兘鍒楄〃 @@ -164,6 +194,11 @@ FileUtlis.Files.DeleteFile(filePath); return; } + //闊充箰閮ㄥ垎瑕佷慨鏀� + //if(tempFunction.spk.ToString() == SPK.MusicStandard) + //{ + // UI.Music.A31MusicModel.A31MusicModelList.Add(Newtonsoft.Json.JsonConvert.DeserializeObject<UI.Music.A31MusicModel>(functionDataString)); + //} if (checkRepeat == true) { //妫�娴嬮噸澶� @@ -191,7 +226,7 @@ { var dataBytes = FileUtlis.Files.ReadFile(filePath); var dataString = System.Text.Encoding.UTF8.GetString(dataBytes); - var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<Security>(dataString); + var temp = Newtonsoft.Json.JsonConvert.DeserializeObject<SecurityAlarm>(dataString); if (temp == null) { MainPage.Log("null"); @@ -255,6 +290,9 @@ return Functions; } + + + /// <summary> /// 娓呯┖璁惧鍔熻兘鍒楄〃 /// </summary> -- Gitblit v1.8.0