From 6ba43603ccd8868a4ee73e9b978b7cb20a5b2c52 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期五, 04 十二月 2020 14:24:53 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/WJC'

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs |   37 +++++++++++++++++++++++++++----------
 1 files changed, 27 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
index c95c370..9c457be 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/FunTpye.cs
@@ -63,7 +63,7 @@
                     Y = Application.GetRealHeight(103),
                     Width = Application.GetRealWidth(160),
                     Height = Application.GetRealHeight(21 + 44),
-                    BackgroundImagePath = "LogicIcon/bjicon.png",
+                    //BackgroundImagePath = "LogicIcon/bjicon.png",
                 };
                 fLayout.AddChidren(bghFrameLyout);
 
@@ -86,7 +86,7 @@
                 {
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5);
                     bghFrameLyout.AddChidren(vvBgh);
-
+                    bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png";
                 }
                 else
                 {
@@ -94,6 +94,7 @@
                     bghFrameLyout.AddChidren(areaBgh);
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * roomList.Count);
                     areaBgh.Height = Application.GetRealHeight(44 * roomList.Count);
+                    bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{roomList.Count+1}.png";
                 }
                 #endregion
 
@@ -124,7 +125,10 @@
 
                         DeviceListView(vv, list);
                     };
-
+                    if (roomList.Count-1==i) {
+                        ///鏀瑰彉鏈�鍚庨偅鏉′竴涓嚎鐨勯鑹�,鐣岄潰鏄剧ず鏁堟灉浣滅敤;
+                        areaView.btnLine.BackgroundColor = CSS.CSS_Color.view;
+                    }
                 }
             };
             funAllAreaView.btnText1.MouseUpEventHandler += roomClick;
@@ -148,7 +152,7 @@
                     Y = Application.GetRealHeight(103),
                     Width = Application.GetRealWidth(160),
                     Height = Application.GetRealHeight(21 + 44),
-                    BackgroundImagePath = "LogicIcon/bjicon.png",
+                    //BackgroundImagePath = "LogicIcon/bjicon5.png",
                 };
                 fLayout.AddChidren(bghFrameLyout);
 
@@ -177,13 +181,14 @@
                 {
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * 5);
                     bghFrameLyout.AddChidren(vvBgh);
-
+                    bghFrameLyout.BackgroundImagePath = "LogicIcon/bjicon5.png";
                 }
                 else
                 {
                     bghFrameLyout.AddChidren(areaBgh);
                     bghFrameLyout.Height = Application.GetRealHeight(21 + 44 * deviceTypeList.Count);
                     areaBgh.Height = Application.GetRealHeight(44 * deviceTypeList.Count);
+                    bghFrameLyout.BackgroundImagePath = $"LogicIcon/bjicon{deviceTypeList.Count+1}.png";
                 }
                 #endregion
 
@@ -212,7 +217,11 @@
                         var lists = LogicMethod.GetShowDeviceList(typeFunctionList, functionList);
                         DeviceListView(vv, lists);
                     };
-
+                    if (deviceTypeList.Count - 1 == i)
+                    {
+                        ///鏀瑰彉鏈�鍚庨偅鏉′竴涓嚎鐨勯鑹�,鐣岄潰鏄剧ず鏁堟灉浣滅敤;
+                        areaView.btnLine.BackgroundColor = CSS.CSS_Color.view;
+                    }
                 }
             };
             funAllAreaView.btnText2.MouseUpEventHandler += funClick;
@@ -243,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