From 43b0d5870d528f23ecd6aeceb6cfd4325188b46f Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 01 七月 2021 15:50:43 +0800
Subject: [PATCH] Revert "1"

---
 HDL_ON/UI/UI0-Public/TopViewDivBLL.cs |   54 +++++++++++++++---------------------------------------
 1 files changed, 15 insertions(+), 39 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs b/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs
index f30ab94..00106dd 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs
@@ -1,4 +1,5 @@
 锘縰sing System;
+using System.Collections.Generic;
 using HDL_ON.Entity;
 
 namespace HDL_ON.UI
@@ -14,28 +15,20 @@
         {
             btnBack.MouseUpEventHandler = (sender, e) => {
                 backAction?.Invoke();
-                if (baseView != null)
+                if (needClose)
                 {
-                    baseView.RemoveFromParent();
-                }
-                if (baseDialog != null)
-                {
-                    baseDialog.Close();
+                    if (baseView != null)
+                    {
+                        baseView.RemoveFromParent();
+                    }
+                    if (baseDialog != null)
+                    {
+                        baseDialog.Close();
+                    }
                 }
             };
         }
 
-        /// <summary>
-        /// 椤堕儴鎸夐挳璺宠浆鍔熻兘閰嶇疆椤甸潰
-        /// </summary>
-        /// <param name="function"></param>
-        void LoadEvent_SkipFunctionSetting(Function function)
-        {
-            var infoView = new FunctionBaseInfoSetPage(function,backAction);
-            MainPage.BasePageView.AddChidren(infoView);
-            infoView.LoadPage();
-            MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
-        }
 
         /// <summary>
         /// 椤堕儴娣诲姞鎸夐挳鐐瑰嚮浜嬩欢
@@ -43,28 +36,11 @@
         /// <param name="type">娣诲姞鎸夐挳鐨勫姛鑳界被鍨�</param>
         void LoadEvent_AddEvent(string type,Action <string,string> callBack)
         {
-            switch (type)
-            {
-                case "floors":
-                    Action<string> callBackAction = (floorName) =>
-                    {
-                        callBack("add", floorName);
-                    };
-                    string newFloorName = "1 F";
-                    for (int i = 0; i < DB_ResidenceData.residenceData.floors.Count + 1; )
-                    {
-                        newFloorName = ++i + " F";
-                        if (!DB_ResidenceData.residenceData.floors.Contains(newFloorName))
-                        {
-                            break;
-                        }
-                    }
-                    new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors,newFloorName , callBackAction);
-                    break;
-                case "rooms":
-                    callBack("", "");
-                    break;
-            }
+            //switch (type)
+            //{
+                
+                
+            //}
         }
 
     }

--
Gitblit v1.8.0