黄学彪
2019-10-10 2ed75b8b337048e5d75e6d9ec8307633134f02fd
ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs
@@ -175,14 +175,14 @@
                        }
                        if (deviceUI.CommonDevice.Type == DeviceType.OnOffOutput)
                        {
                            var light = deviceUI.CommonDevice as ToggleLight;
                            var light = deviceUI.CommonDevice as ToggleLight;
                            light.IsOnline = (common as ToggleLight).IsOnline;
                            deviceIMG.IsSelected = light.IsOnline == 1;
                            light.LastDateTime = DateTime.Now;
                        }
                    }
                    catch (Exception ex)
                    {
                    {
                        System.Console.WriteLine($"Error:{ex.Message}");
                    }
                });
@@ -383,6 +383,7 @@
        {
            ZbGateway.StatusList.Remove(this);
            action();
            action = null;
            RemoveUpdateControlDeviceStatuAction();
            base.RemoveFromParent();
        }
@@ -489,7 +490,6 @@
                Shared.Common.Room.Lists[0].AddDevice(device.FileName);
                collectionBtn.IsSelected = true;
            }
            action?.Invoke();
        }
        #endregion