From a1b0ab7044100daaa7e0f1da2d2ca45e38098963 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 29 三月 2021 09:13:25 +0800
Subject: [PATCH] 2021-3-29-2
---
HDL_ON/UI/UI0-Public/TopViewDivBLL.cs | 59 ++++++++++++++++-------------------------------------------
1 files changed, 16 insertions(+), 43 deletions(-)
diff --git a/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs b/HDL_ON/UI/UI0-Public/TopViewDivBLL.cs
index 9ded327..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
@@ -13,32 +14,21 @@
void LoadEvent_BackEvent()
{
btnBack.MouseUpEventHandler = (sender, e) => {
- if (backAction != null)
+ backAction?.Invoke();
+ if (needClose)
{
- backAction();
- }
- if (baseView != null)
- {
- 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>
/// 椤堕儴娣诲姞鎸夐挳鐐瑰嚮浜嬩欢
@@ -46,28 +36,11 @@
/// <param name="type">娣诲姞鎸夐挳鐨勫姛鑳界被鍨�</param>
void LoadEvent_AddEvent(string type,Action <string,string> callBack)
{
- switch (type)
- {
- case "floors":
- Action<string> callBackAction = (floorName) =>
- {
- if (DB_ResidenceData.residenceData.floors.Contains(floorName))
- {
- return;
- }
- else
- {
- DB_ResidenceData.residenceData.floors.Add(floorName);
- DB_ResidenceData.residenceData.SaveResidenceData();
- callBack("add", floorName);
- }
- };
- new PublicAssmebly().LoadDialog_EditParater(StringId.AddFloors, DB_ResidenceData.residenceData.floors.Count + 1 + " F", callBackAction);
- break;
- case "rooms":
- callBack("", "");
- break;
- }
+ //switch (type)
+ //{
+
+
+ //}
}
}
--
Gitblit v1.8.0