CalDavSynchronizer.ThoughtvCardWorkaround.vCardImprovedWriter.BuildProperties_GEO C# (CSharp) Метод

BuildProperties_GEO() приватный Метод

Builds the GEO property.
private BuildProperties_GEO ( vCardPropertyCollection properties, Thought.vCards.vCard card ) : void
properties vCardPropertyCollection
card Thought.vCards.vCard
Результат void
      private void BuildProperties_GEO(
          vCardPropertyCollection properties,
          vCard card)
      {

        // The GEO properties contains the latitude and
        // longitude of the person or company of the vCard.

        if (card.Latitude.HasValue && card.Longitude.HasValue)
        {

          vCardProperty property = new vCardProperty();

          property.Name = "GEO";
          property.Value =
              card.Latitude.ToString() + ";" + card.Longitude.ToString();

          properties.Add(property);

        }

      }