Ejemplo n.º 1
0
        public override bool Equals(object obj)
        {
            PortableLocation other = obj as PortableLocation;

            if (other != null)
            {
                return(System.Math.Abs(Latitude - other.Latitude) < EPSILON &&
                       System.Math.Abs(Longitude - other.Longitude) < EPSILON &&
                       System.Math.Abs(Altitude - other.Altitude) < EPSILON &&
                       DateTime == other.DateTime &&
                       Provider == other.Provider &&
                       Provider == other.ReferenceFile);
            }
            else
            {
                return(false);
            }
        }
Ejemplo n.º 2
0
 public void AddLocation(PortableLocation location)
 {
     Locations.Add(location);
 }