示例#1
0
 private bool CheckIfTelephoneExists(object obj)
 {
     if (ContactTelephpones.Any())
     {
         return(true);
     }
     return(false);
 }
示例#2
0
 private void GetTelephoneDetails()
 {
     if (SelectedTelephoneIndex < 0)
     {
         SelectedTelephoneIndex = 0;
     }
     if (ContactTelephpones.Any())
     {
         ContactTelephoneNumber = ContactTelephpones[SelectedTelephoneIndex].Number;
         ContactPhoneOperator   = ContactTelephpones[SelectedTelephoneIndex].Operator;
         ContactPhoneType       = ContactTelephpones[SelectedTelephoneIndex].Type;
     }
     else
     {
         ContactTelephoneNumber = 0;
         ContactPhoneOperator   = string.Empty;
         ContactPhoneType       = string.Empty;
     }
 }