Example #1
0
 /// <summary>
 /// Update Google contact from outlook
 /// </summary>
 /// <param name="sourceGoogle">Source outlook contact</param>
 /// <param name="destinationOutlook">destination google contact</param>
 /// <returns>True if delete success</returns>
 internal static bool UpdateGoogleFromOutlook(OneContact sourceOutlook, OneContact destinationGoogle)
 {
     if ((!sourceOutlook.IsSourceOutlook) || destinationGoogle.IsSourceOutlook)
     {
         return(false);
     }
     destinationGoogle.UpdateFromOther(sourceOutlook);
     return(true);
 }
Example #2
0
        /// <summary>
        /// Update Outlook contact from Google
        /// </summary>
        /// <param name="sourceGoogle">Source Google contact</param>
        /// <param name="destinationOutlook">destination Outlook contact</param>
        /// <returns>True if delete success</returns>
        internal static bool UpdateOutlookFromGoogle(OneContact sourceGoogle, OneContact destinationOutlook)
        {
            if (sourceGoogle.IsSourceOutlook || (!destinationOutlook.IsSourceOutlook))
            {
                return(false);
            }

#if (DUMP_CONTACTS)
            sourceGoogle.DumpActualDataToLog();
            destinationOutlook.DumpActualDataToLog();
#endif

            destinationOutlook.UpdateFromOther(sourceGoogle);
            return(true);
        }