public void ResetAlleUhren() { for (int i = 0; i < this.ClockList.Count; i++) { ClsClock clock = this.ClockList[i]; clock.ZeitReset(); } }
public void ClockStop(long ClockID) { ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault(); clock.Status = false; Saveereignis(ClockID.ToString() + "_False"); if (clock.DynDisplay) { ClsServer.Instance.SendMessage(ClsVarCom.ChangeDivVisibilityString(clock.Variable, "hidden")); } }
/// <summary> /// Initialisieren der Spieluhren mit Parametern aus der Datenbank /// </summary> public void IniUhren() { List <DB.Timer> tl = ClsTimerControler.Timers(); if (tl.Count == 0) { return; } tl.Sort((a, b) => a.Nr.CompareTo(b.Nr)); for (int i = 0; i < tl.Count; i++) { ClsClock uhr = new ClsClock(tl[i]); uhr.Zeitereignis += this.ZeitAusloeser; this.ClockList.Add(uhr); } }
public void ManipulateClock(long ClockID, int Seconds) { ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault(); clock.Zeit = Seconds; }
/// <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(); }
public bool GetClockStatus(long ClockID) { ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault(); return(clock.Status); }