コード例 #1
0
 public void ResetAlleUhren()
 {
     for (int i = 0; i < this.ClockList.Count; i++)
     {
         ClsClock clock = this.ClockList[i];
         clock.ZeitReset();
     }
 }
コード例 #2
0
        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"));
            }
        }
コード例 #3
0
        /// <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);
            }
        }
コード例 #4
0
        public void ManipulateClock(long ClockID, int Seconds)
        {
            ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault();

            clock.Zeit = Seconds;
        }
コード例 #5
0
        /// <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();
        }
コード例 #6
0
        public bool GetClockStatus(long ClockID)
        {
            ClsClock clock = (from x in this.ClockList where x.ID == ClockID select x).FirstOrDefault();

            return(clock.Status);
        }