From 2ec9898778d3beda89278e2a53ac0e68b3035d29 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 01 七月 2020 15:06:24 +0800 Subject: [PATCH] 2020-7-1-2 --- ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs | 33 ++++++++++++--------------------- 1 files changed, 12 insertions(+), 21 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs index 21e844f..9472dbe 100644 --- a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs +++ b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs @@ -448,27 +448,18 @@ deviceFramelayout.AddChidren(lineBtn); EventHandler<MouseEventArgs> devicclick = (sen, e) => { - //clickbutton.IsSelected = false; - //clickbutton = deviceIconBtn; - //deviceIconBtn.IsSelected = true; - //clickframeLayout.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; - //clickframeLayout = bjFramelayout; - //bjFramelayout.BackgroundColor = ZigbeeColor.Current.LogicIconBackgroundColor; - //clicktextcolcrbutton.IsSelected = false; - //clicktextcolcrbutton = devicename; - //devicename.IsSelected = true; - //var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; - //this.AddChidren(flMain); - //CurrentDeviceState.CurrentDeviceView(flMain, common, false, IfType); - - - var nightlight = new Nightlight(); - UserView.HomePage.Instance.AddChidren(nightlight); - UserView.HomePage.Instance.PageIndex += 1; - nightlight.Show(); - - - + clickbutton.IsSelected = false; + clickbutton = deviceIconBtn; + deviceIconBtn.IsSelected = true; + clickframeLayout.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor; + clickframeLayout = bjFramelayout; + bjFramelayout.BackgroundColor = ZigbeeColor.Current.LogicIconBackgroundColor; + clicktextcolcrbutton.IsSelected = false; + clicktextcolcrbutton = devicename; + devicename.IsSelected = true; + var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor }; + this.AddChidren(flMain); + CurrentDeviceState.CurrentDeviceView(flMain, common, false, IfType,0); }; deviceFramelayout.MouseUpEventHandler += devicclick; bjFramelayout.MouseUpEventHandler += devicclick; -- Gitblit v1.8.0