From a35617eb62b317bf3ed92b1462018cf67c920411 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 15 十二月 2020 15:17:35 +0800
Subject: [PATCH] 2020-12-15-2

---
 HDL_ON/Entity/Function/Scene.cs |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/HDL_ON/Entity/Function/Scene.cs b/HDL_ON/Entity/Function/Scene.cs
index 67d0c57..3983d39 100644
--- a/HDL_ON/Entity/Function/Scene.cs
+++ b/HDL_ON/Entity/Function/Scene.cs
@@ -256,6 +256,19 @@
                 MainPage.Log($"Save Scene Data : {savePath}");
             }
         }
+        /// <summary>
+        /// 娣诲姞鍦烘櫙
+        /// </summary>
+        public void AddScene()
+        {
+            var pm = new HttpServerRequest();
+            var revPack = pm.AddScene(this);
+            if (revPack.Code == StateCode.SUCCESS)
+            {
+                var ssd = System.Text.Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(this));
+                Common.FileUtlis.Files.WriteFileByBytes(savePath, ssd);
+            }
+        }
 
         /// <summary>
         /// 涓婁紶鏁版嵁鍒颁簯绔�

--
Gitblit v1.8.0