陈嘉乐
2020-07-17 627093aca723d4bfb971b97c828e8b3a22dbda78
ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs
@@ -380,6 +380,7 @@
        /// <param name="devicelist">设备列表</param>
        void ConditionDeviceView(List<DeviceType> deviceTypelist, List<CommonDevice> devicelist)
        {
            middle.RemoveAll();
            foreach (var common in devicelist)
            {
@@ -448,27 +449,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;