public Waypoint(Geocode geocode, long speed, DateTime time, long trackID) { _Speed = speed; _Geocode = geocode; _DateTime = time; _Time = _DateTime.Ticks / 10000L; _TrackID = trackID; }
public Waypoint(Geocode geocode, long speed, long time, long trackID) { _Speed = speed; _Time = time; _DateTime = new DateTime(_Time * 10000L); _Geocode = geocode; _TrackID = trackID; }
public override bool Equals(object obj) { if (!(obj is Geocode)) { return(false); } Geocode other = (Geocode)obj; return(this == other); }
/// <summary> /// Update device's location /// </summary> /// <param name="geocode">A geocode instance contains latitude, longitude of device</param> /// <param name="speed">Speed</param> /// <returns></returns> public WaypointOperation Waypoint(Geocode geocode, long speed) { return Waypoint(geocode.Latitude, geocode.Longitude, speed); }
/// <summary> /// Update device's location /// </summary> /// <param name="geocode">A geocode instance contains latitude, longitude of device</param> /// <returns></returns> public WaypointOperation Waypoint(Geocode geocode) { return Waypoint(geocode, -1); }
private void _btnInsert_Click(object sender, EventArgs e) { foreach (string line in txtInput.Lines) { try { Geocode geocode = new Geocode(line.Trim()); geocodeQueue.Enqueue(geocode); Invoke(new InsertListGeocodeDelegate(listGeocode.Items.Insert), 0, geocode); } catch { } } Invoke(new VoidCall(txtInput.Clear)); }