| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextSize = 20, |
| | | IsBold = true, |
| | | }; |
| | | this.midFrameLayout.AddChidren(btnPicTip); |
| | | |
| | |
| | | var btnLine = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(965), |
| | | Height = Application.GetRealHeight(5), |
| | | Height = 1, |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(81 + 127), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMRowLine, |
| | |
| | | Width = Application.GetRealWidth(222), |
| | | Height = Application.GetRealHeight(58), |
| | | Y = Application.GetRealHeight(35), |
| | | Text = Language.StringByID(R.MyInternationalizationString.MatchPerson), |
| | | Text = Language.StringByID(R.MyInternationalizationString.MatchPerson) + ":", |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | TextSize = 14, |
| | |
| | | }; |
| | | personRemarkRemarkFrameLayout.AddChidren(btnMatchPersonContent); |
| | | |
| | | var btnLine1 = new FrameLayout() |
| | | { |
| | | Width = Application.GetRealWidth(965), |
| | | Height = 1, |
| | | X = Application.GetRealWidth(58), |
| | | Y = Application.GetRealHeight(81 + 127 + 12 + 127), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMRowLine, |
| | | }; |
| | | bottomFrameLayout.AddChidren(btnLine1); |
| | | |
| | | var completeBtn = new Button |
| | | { |
| | | X = Application.GetRealWidth(86), |
| | |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | Gravity = Gravity.CenterHorizontal, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | Radius = 10, |
| | | Radius = (uint)Application.GetRealHeight(127 / 2), |
| | | TextSize = 16, |
| | | IsBold = true, |
| | | }; |
| | | bottomFrameLayout.AddChidren(completeBtn); |
| | | |
| | | if (currentType == "password") |
| | | { |
| | | btnPasswordRemark.Text = Language.StringByID(R.MyInternationalizationString.PasswordRemark); |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.Password) + "-" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.Password) + "ID" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | } |
| | | else if (currentType == "fingerprint") |
| | | { |
| | | btnPasswordRemark.Text = Language.StringByID(R.MyInternationalizationString.FingerprintRemark); |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.Fingerprint) + "-" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.Fingerprint) + "ID" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | } |
| | | else |
| | | { |
| | | btnPasswordRemark.Text = Language.StringByID(R.MyInternationalizationString.ProximityRemark); |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.ProximityCard) + "-" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | btnPasswordRemarkContent.PlaceholderText = Language.StringByID(R.MyInternationalizationString.IcCard) + "ID" + doorLock.doorLockProgrammingEventNotificationCommand.UserID; |
| | | } |
| | | if (curAccountObj.UserName != "" && curAccountObj.UserName != null) |
| | | |
| | | if (!string.IsNullOrEmpty(curAccountObj.UserName)) |
| | | { |
| | | btnMatchPersonContent.Text = curAccountObj.UserName; |
| | | } |
| | |
| | | addLockInfo.OpenLockMode = doorLock.doorLockProgrammingEventNotificationCommand.ProgramEventSoure; |
| | | addLockInfo.DoorLockLocalUserId = doorLock.doorLockProgrammingEventNotificationCommand.UserID.ToString(); |
| | | addLockInfo.EntryTime = System.DateTime.Now; |
| | | if (btnPasswordRemarkContent.Text != "") |
| | | if (!string.IsNullOrEmpty(btnPasswordRemarkContent.Text)) |
| | | { |
| | | addLockInfo.UserIdRemarks = btnPasswordRemarkContent.Text; |
| | | } |
| | |
| | | |
| | | if (form is UnLockMethod) |
| | | { |
| | | doorLock.currentUserDisplayMethod = ""; |
| | | ((UnLockMethod)form).RefreshList(); |
| | | break; |
| | | } |