コード例 #1
0
ファイル: Extensions.cs プロジェクト: Interface007/Sem.Sync
 /// <summary>
 /// sets a instant messenger address if it's not null
 /// </summary>
 /// <param name="exchangeContact">
 /// The exchange contact.
 /// </param>
 /// <param name="address">
 /// The im address type to be set.
 /// </param>
 /// <param name="value">
 /// The value (the im address).
 /// </param>
 private static void SetImAddress(this Contact exchangeContact, ImAddressKey address, string value)
 {
     if (!string.IsNullOrEmpty(value))
     {
         exchangeContact.ImAddresses[address] = value;
     }
 }
コード例 #2
0
 private static void SyncIM(ImAddressKey imAddressKey,
                            IdentificacionTipo identificacionTipo,
                            Contact contact,
                            Persona persona, IObjectSpace objectSpace)
 {
     if (contact.ImAddresses.Contains(imAddressKey))
     {
         var im = contact.ImAddresses[imAddressKey];
         SyncIdentificacion(persona, identificacionTipo, objectSpace, im, imAddressKey.ToString( ));
     }
 }