陈嘉乐
2020-06-24 adb12dcdbb2ddaeac687c3aa9e57bb7ed459ab7e
ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs
old mode 100755 new mode 100644
@@ -448,18 +448,26 @@
                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);
                    //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();
                };
                deviceFramelayout.MouseUpEventHandler += devicclick;