| | |
| | | |
| | | namespace Shared.Phone.UserCenter.DoorLock |
| | | { |
| | | public class AddUnLockMethodTip : DoorLockCommonLayout, ZigBee.Common.IStatus |
| | | public class AddUnLockMethodTip : DoorLockCommonLayout |
| | | { |
| | | /// 构造函数 |
| | | /// </summary> |
| | | /// <param name="doorLock"></param> |
| | | public AddUnLockMethodTip(ZigBee.Device.DoorLock doorLock, Shared.Phone.UserCenter.MemberInfoRes accountObj, string entryType) |
| | | public AddUnLockMethodTip(ZigBee.Device.DoorLock doorLock, MemberInfoRes accountObj, string entryType) |
| | | { |
| | | this.doorLock = doorLock; |
| | | this.curAccountObj = accountObj; |
| | |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | } |
| | | |
| | | #region ◆ 变量申明__________________________ |
| | | #region 变量申明 |
| | | /// <summary> |
| | | /// 当前门锁 |
| | | /// </summary> |
| | | ZigBee.Device.DoorLock doorLock; |
| | | Shared.Phone.UserCenter.MemberInfoRes curAccountObj; |
| | | /// <summary> |
| | | /// 当前账户 |
| | | /// </summary> |
| | | MemberInfoRes curAccountObj; |
| | | /// <summary> |
| | | /// 当前类型 |
| | | /// </summary> |
| | | string currentType = string.Empty; |
| | | Action<string, string> action;//接收通知 |
| | | /// <summary> |
| | | /// 接收通知 |
| | | /// </summary> |
| | | Action<string, string> action; |
| | | |
| | | #endregion |
| | | |
| | |
| | | /// </summary> |
| | | public override void RemoveFromParent() |
| | | { |
| | | ZbGateway.StatusList.Remove(this); |
| | | if (doorLock.Gateway != null || doorLock.Gateway.GwResDataAction != null) |
| | | { |
| | | doorLock.Gateway.GwResDataAction -= action; |
| | |
| | | base.RemoveFromParent(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 中部布局 |
| | | /// </summary> |
| | | public void MidFrameLayoutContent() |
| | | { |
| | | var topMidFrameLayout = new FrameLayout |
| | |
| | | { |
| | | X = Application.GetRealWidth(446), |
| | | Y = Application.GetRealHeight(330), |
| | | Height = Application.GetRealHeight(81 / 2), |
| | | Height = Application.GetRealHeight(76 / 2), |
| | | Width = Application.GetRealWidth(407), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, |
| | | TextSize = 10, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | { |
| | | X = Application.GetRealWidth(446), |
| | | Y = btnPicTip1.Bottom, |
| | | Height = Application.GetRealHeight(81 / 2), |
| | | Height = Application.GetRealHeight(76 / 2), |
| | | Width = Application.GetRealWidth(207), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, |
| | | TextSize = 10, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | |
| | | { |
| | | X = Application.GetRealWidth(294), |
| | | Y = Application.GetRealHeight(1089), |
| | | Height = Application.GetRealHeight(173 / 2), |
| | | Height = Application.GetRealHeight(100 / 2), |
| | | Width = Application.GetRealWidth(488), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextSize = 14, |
| | | }; |
| | |
| | | var btnPicTip4 = new Button |
| | | { |
| | | X = Application.GetRealWidth(397), |
| | | Y = btnPicTip3.Bottom, |
| | | Y = btnPicTip3.Y + Application.GetRealHeight(50), |
| | | Width = Application.GetRealWidth(288), |
| | | Height = Application.GetRealHeight(173 / 2), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | Height = Application.GetRealHeight(100 / 2), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray2, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextSize = 14, |
| | | }; |
| | |
| | | Y = Application.GetRealHeight(1388), |
| | | Height = Application.GetRealHeight(49), |
| | | Width = Application.GetRealWidth(685), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextSize = 12, |
| | | }; |
| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | Radius = (uint)Application.GetRealHeight(127 / 2), |
| | | TextSize = 20, |
| | | TextSize = 16, |
| | | IsBold = true, |
| | | Enable = false, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMUnSelect, |
| | | }; |
| | |
| | | entryStatusPage.Show(); |
| | | }; |
| | | } |
| | | |
| | | |
| | | #region ◆ 接口实现__________________________ |
| | | /// <summary> |
| | | /// 处理变化事件 --将弃用 改用DeviceInfoChange() |
| | | /// </summary> |
| | | /// <returns>The changed.</returns> |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 处理变化事件 |
| | | /// </summary> |
| | | /// <param name="common"></param> |
| | | /// <param name="typeTag"></param> |
| | | public void DeviceInfoChange(CommonDevice common, string typeTag) |
| | | { |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IL ogic status. |
| | | /// </summary> |
| | | /// <param name="logic">Logic.</param> |
| | | public void ChangedILogicStatus(ZigBee.Device.Logic logic) |
| | | { |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IS cene status. |
| | | /// </summary> |
| | | /// <param name="scene">Scene.</param> |
| | | public void ChangedISceneStatus(Scene scene) |
| | | { |
| | | } |
| | | #endregion |
| | | } |
| | | } |