Exemple #1
0
        private static void SetGeo(vCard card, string line)
        {
            GeographicalPosition geo = new GeographicalPosition();
            string val = Unescape(line.Replace(line.Split(':')[0] + ":", ""));

            string[] values = val.Split(';');
            geo.Latitude              = Convert.ToDecimal(values[0]);
            geo.Longitude             = Convert.ToDecimal(values[1]);
            card.GeographicalPosition = geo;
        }
        private static void SetGeo(vCard card, string line)
        {
            GeographicalPosition geo = new GeographicalPosition();
            string val = ActiveUp.Net.Groupware.vCard.Parser.Unescape(line.Replace(line.Split(':')[0] + ":", ""));

            string[] values = val.Split(';');
            geo.Latitude              = System.Convert.ToDecimal(values[0]);
            geo.Longitude             = System.Convert.ToDecimal(values[1]);
            card.GeographicalPosition = geo;
        }
		private static void SetGeo(vCard card, string line)
		{
			GeographicalPosition geo = new GeographicalPosition();
			string val = ActiveUp.Net.Groupware.vCard.Parser.Unescape(line.Replace(line.Split(':')[0]+":",""));
			string[] values = val.Split(';');
			geo.Latitude = System.Convert.ToDecimal(values[0]);
			geo.Longitude = System.Convert.ToDecimal(values[1]);
			card.GeographicalPosition = geo;
		}