private void TimerOnElapsed(object sender, ElapsedEventArgs elapsedEventArgs) { var systemTimeDate = DateTime.Now.ToString(CultureInfo.InvariantCulture); if (InvokeRequired) { UpdateDateTime udp = TimerOnElapsed; Invoke(udp, sender, elapsedEventArgs); } Text = "NetworkTransfer (" + systemTimeDate + ")"; }
public bool Equals(Measurement other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Id.Equals(other.Id) && InstallationExternalId == other.InstallationExternalId && UpdateDateTime.Equals(other.UpdateDateTime) && FromDateTime.Equals(other.FromDateTime) && TillDateTime.Equals(other.TillDateTime) && Equals(Values, other.Values) && Equals(Indexes, other.Indexes) && Equals(Standards, other.Standards)); }