From 8b4d79ca03495e522a1953e04ca17527f33c853a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 28 十月 2019 13:22:17 +0800 Subject: [PATCH] 合并完成代码 --- ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs | 36 ++++++++++++++++++++++++------------ 1 files changed, 24 insertions(+), 12 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs index 1b22eb0..a737171 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Residence/EditorRoomInforForm.cs @@ -12,6 +12,10 @@ #region 鈻� 鍙橀噺澹版槑___________________________ /// <summary> + /// 缁撴潫缂栬緫鍚嶇О鐨勪簨浠� + /// </summary> + public Action<string> FinishEditorEvent = null; + /// <summary> /// 鍒楄〃鎺т欢 /// </summary> private VerticalListControl listview = null; @@ -82,19 +86,23 @@ //搴曠嚎 txtRoomName.AddBottomLine(); - //銆愭墍灞炴ゼ灞傘�� - var btnBelone = new FrameCaptionViewControl(Language.StringByID(R.MyInternationalizationString.uBelongeFloor), Common.Config.Instance.Home.FloorDics[this.cloneRoom.FloorId], this.listview.rowSpace / 2); - listview.AddChidren(btnBelone); - btnBelone.InitControl(); - //鍙崇澶� - btnBelone.AddRightArrow(); - //搴曠嚎 - btnBelone.AddBottomLine(); - btnBelone.ButtonClickEvent += (sender, e) => + //璇PP涓烘湁妤煎眰鐨勬ā寮忔墠寮�鍚繖涓彍鍗� + if (string.IsNullOrEmpty(this.cloneRoom.FloorId) == false) { - //妤煎眰閫夋嫨 - this.ShowSelectFloor(btnBelone); - }; + //銆愭墍灞炴ゼ灞傘�� + var btnBelone = new FrameCaptionViewControl(Language.StringByID(R.MyInternationalizationString.uBelongeFloor), Common.Config.Instance.Home.FloorDics[this.cloneRoom.FloorId], this.listview.rowSpace / 2); + listview.AddChidren(btnBelone); + btnBelone.InitControl(); + //鍙崇澶� + btnBelone.AddRightArrow(); + //搴曠嚎 + btnBelone.AddBottomLine(); + btnBelone.ButtonClickEvent += (sender, e) => + { + //妤煎眰閫夋嫨 + this.ShowSelectFloor(btnBelone); + }; + } //銆愭俯搴︺�� var rowTemperature = new FrameRowControl(this.listview.rowSpace / 2); @@ -152,6 +160,8 @@ return; } editorRoom.Save(); + + FinishEditorEvent?.Invoke(this.cloneRoom.Name); this.CloseForm(); }; } @@ -378,6 +388,8 @@ /// </summary> public override void CloseForm() { + this.FinishEditorEvent = null; + HdlDeviceAttributeLogic.Current.RemoveEvent("TemperatrueDevice"); HdlDeviceAttributeLogic.Current.RemoveEvent("HumidityDevice"); -- Gitblit v1.8.0