From 0f2e0147e8990e913d16d99bc1b94fb6bc53abd7 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期四, 03 十二月 2020 15:35:42 +0800 Subject: [PATCH] 2020-12-03-1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs index 4f3d3c0..4e767eb 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs @@ -252,10 +252,18 @@ funView.btnDeviceName.Text = dev.name; funView.btnRoomName.Text = dev.GetRoomListName(); funView.btnClick.MouseUpEventHandler += (sen,e) => { - DeviceFunList deviceFunList = new DeviceFunList(); - MainPage.BasePageView.AddChidren(deviceFunList); - deviceFunList.Show(dev,0,false,if_type); - MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + if (if_type == LogicMethod.condition_if) { + ConditionDeviceFunList conditionDeviceFunList = new ConditionDeviceFunList(); + MainPage.BasePageView.AddChidren(conditionDeviceFunList); + conditionDeviceFunList.Show(dev, 0, false); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + } else { + TargetDeviceFunList targetDeviceFunList = new TargetDeviceFunList(); + MainPage.BasePageView.AddChidren(targetDeviceFunList); + targetDeviceFunList.Show(dev, 0, false); + MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; + } + }; } } -- Gitblit v1.8.0