public void ResetAlleUhren() { for (int i = 0; i < this.ClockList.Count; i++) { ClsClock clock = this.ClockList[i]; clock.ZeitReset(); } }
/// <summary> /// Stellt die Uhr auf die in der DB gespeichte Zeit zurück /// </summary> /// <param name="Nr">mit 1 Startende Nummer der Uhr</param> public void ResetUhr(long ClockID) { ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault(); clock.ZeitReset(); }