| | |
| | | #endregion |
| | | |
| | | /// <summary>
|
| | | /// UI显示
|
| | | /// UI显示 |
| | | /// </summary> |
| | | public void Show() |
| | | {
|
| | |
| | | IsBold = true, |
| | | }; |
| | | midTopFrameLayout.AddChidren(btnDoorLockTitle); |
| | | //获取Mac名字 |
| | | btnDoorLockTitle.Text = Common.LocalDevice.Current.GetDeviceMacName(doorLock); |
| | | |
| | | var btnRecordFrameLayout = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(69+15+46), |
| | | Height = Application.GetRealHeight(69+46 * 2), |
| | | X = Application.GetRealWidth(752-46), |
| | | }; |
| | | midTopFrameLayout.AddChidren(btnRecordFrameLayout); |
| | | |
| | | //记录 |
| | | btnRecordFrameLayout = new FrameLayout() |
| | |
| | | }; |
| | | midTopFrameLayout.AddChidren(btnCurrentTopFrameLayout); |
| | | |
| | | var btnCurrentTopFrameLayout = new FrameLayout() |
| | | { |
| | | Height = Application.GetRealHeight(50), |
| | | Width = Application.GetRealWidth(965), |
| | | BackgroundColor = ZigbeeColor.Current.XMBlack, |
| | | Y = Application.GetRealHeight(1100), |
| | | }; |
| | | midTopFrameLayout.AddChidren(btnCurrentTopFrameLayout); |
| | | |
| | | var btnCurrentFrameLayout = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(965), |
| | |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | }; |
| | | btnCurrentFrameLayout.AddChidren(btnCurrentRoomName); |
| | | #endregion |
| | | #endregion |
| | | } |
| | | |
| | | #region 音量弹窗 |
| | |
| | | ThumbImagePath = "DoorLock/UnLockButton.png",//进度条按钮图标 |
| | | ThumbImageHeight = Application.GetRealHeight(81),//进度条按钮图标的高度(默认正方形:宽和高一样) |
| | | ProgressTextColor = ZigbeeColor.Current.LogicBtnCancelColor, |
| | | ProgressTextSize = 12,//显示百分比字体大小 |
| | | ProgressTextSize = 12,//显示百分比字体大小 |
| | | SeekBarViewHeight = Application.GetRealHeight(17),//进度条的宽度 |
| | | Progress = (currentVolume * (Convert.ToInt32(((float)100 / 15) * 100))) / 100, |
| | | }; |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region 公共事件处理 |
| | | #region 公共事件处理 |
| | | /// <summary> |
| | | /// 事件处理 |
| | | /// 事件处理 |
| | | /// </summary> |
| | | public void ClickHandle() |
| | | { |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 常开模式 |
| | | #region 常开模式 |
| | | /// <summary> |
| | | /// 常开模式处理 |
| | | /// </summary> |
| | |
| | | alertNomallyModeIsTurnOn.Show(); |
| | | alertNomallyModeIsTurnOn.LogicClickEvent += () => |
| | | { |
| | | //自动化 |
| | | //自动化 |
| | | }; |
| | | alertNomallyModeIsTurnOn.InvalidClickEvent += async () => |
| | | { |
| | |
| | | /// </summary> |
| | | private void NomallyOpenModeInvalidTimeDialog() |
| | | { |
| | | //失效设置 |
| | | //失效设置 |
| | | string msgTimeInValidSetting = Language.StringByID(R.MyInternationalizationString.DoorLockOpenAllTheTime); |
| | | var timeConfrim = Language.StringByID(R.MyInternationalizationString.Confrim); |
| | | var alertTimeInValidSetting = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.InValid, msgTimeInValidSetting, timeConfrim); |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 开锁处理 |
| | | #region 开锁处理 |
| | | /// <summary> |
| | | /// 开锁处理 |
| | | /// </summary> |