gxc
2020-02-28 66a9965c44ecc32a6696abca876ab9d1cd091584
ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/DeviceControls/DeviceInfoIconControl.cs
@@ -38,7 +38,7 @@
            this.Height = Application.GetMinRealAverage(207);
            this.Width = Application.GetMinRealAverage(207);
            this.BackgroundColor = UserCenterColor.Current.White;
            this.Radius = (uint)Application.GetMinRealAverage(207);
            this.Radius = (uint)Application.GetMinRealAverage(207) / 2;
        }
        /// <summary>
@@ -51,14 +51,14 @@
            //第二层底色
            var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
            btnIcon2.BackgroundColor = 0xfffef1ed;
            btnIcon2.Radius = (uint)Application.GetMinRealAverage(184);
            btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
            btnIcon2.Gravity = Gravity.Center;
            this.AddChidren(btnIcon2);
            //设备图标
            btnIcon = new NormalViewControl(Application.GetMinRealAverage(121), Application.GetMinRealAverage(121), false);
            btnIcon.Gravity = Gravity.Center;
            Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
            Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
            this.AddChidren(btnIcon);
        }
@@ -72,7 +72,7 @@
            //第二层底色
            var btnIcon2 = new NormalViewControl(Application.GetMinRealAverage(184), Application.GetMinRealAverage(184), false);
            btnIcon2.BackgroundColor = 0xfffef1ed;
            btnIcon2.Radius = (uint)Application.GetMinRealAverage(184);
            btnIcon2.Radius = (uint)Application.GetMinRealAverage(184) / 2;
            btnIcon2.Gravity = Gravity.Center;
            this.AddChidren(btnIcon2);
@@ -95,7 +95,7 @@
            if (this.deviceMac != null)
            {
                //刷新图标
                Common.LocalDevice.Current.SetDeviceBeloneIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
                Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
            }
            else
            {