void TimeChanged(object sender, DateTimeEventArgs e) { lock (syncRoot) { GpsTime = e.DateTime; } Debug.WriteLine("Time changed: " + GpsTime.ToString()); NotifyOfGpsDataUpdate(); }
public override int GetHashCode() { int hash = 1; if (Vno.Length != 0) { hash ^= Vno.GetHashCode(); } if (VColor != 0) { hash ^= VColor.GetHashCode(); } if (FromChannel.Length != 0) { hash ^= FromChannel.GetHashCode(); } if (Encrypt != 0) { hash ^= Encrypt.GetHashCode(); } if (GpsTime != 0L) { hash ^= GpsTime.GetHashCode(); } if (Lon != 0L) { hash ^= Lon.GetHashCode(); } if (Lat != 0L) { hash ^= Lat.GetHashCode(); } if (Vec1 != 0) { hash ^= Vec1.GetHashCode(); } if (Vec2 != 0) { hash ^= Vec2.GetHashCode(); } if (Vec3 != 0) { hash ^= Vec3.GetHashCode(); } if (Direction != 0) { hash ^= Direction.GetHashCode(); } if (Altitude != 0) { hash ^= Altitude.GetHashCode(); } if (State != 0) { hash ^= State.GetHashCode(); } if (Alarm != 0) { hash ^= Alarm.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }