| | |
| | | {
|
| | | Contacts.ContactAction = (phoneName, phoneNum) =>
|
| | | {
|
| | | if (string.IsNullOrEmpty(phoneName) == true)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //手机号检测
|
| | | if (this.CheckPhoneNumber("86", phoneNum, phoneName) == false)
|
| | | {
|
| | | return;
|
| | | }
|
| | | //保存联系人
|
| | | this.SaveCoercePhoneNumber("86", phoneNum, phoneName);
|
| | | };
|
| | |
| | | btnLine.Y = Application.GetRealHeight(150);
|
| | | btnLine.Gravity = Gravity.CenterHorizontal;
|
| | | frameBack.AddChidren(btnLine);
|
| | | //联动线的状态
|
| | | txtPhone.btnLine = btnLine;
|
| | |
|
| | | //备注
|
| | | var txtNote = new TextInputControl(Application.GetRealWidth(740), txtPhone.Height, false);
|
| | | txtNote.X = ControlCommonResourse.XXLeft;
|
| | | txtNote.Y = btnLine.Bottom + Application.GetRealHeight(60);
|
| | | txtNote.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup);
|
| | | txtNote.PlaceholderText = Language.StringByID(R.MyInternationalizationString.uPlesaeInputNoteInformation);
|
| | | frameBack.AddChidren(txtNote);
|
| | | //取消图标
|
| | | var btnCancel2 = new MostRightIconControl(69, 69);
|
| | |
| | | }
|
| | | if (strNote == string.Empty)
|
| | | {
|
| | | //请输入备注名称
|
| | | btnErrorMsg.Text = Language.StringByID(R.MyInternationalizationString.uPleaseInpuBackup);
|
| | | //请输入备注内容
|
| | | btnErrorMsg.Text = Language.StringByID(R.MyInternationalizationString.uPlesaeInputNoteInformation);
|
| | | return false;
|
| | | }
|
| | |
|
| | |
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | | |
| | |
|
| | | |
| | | }
|
| | | }
|