Beispiel #1
0
 private void TimerControl_OnStop()
 {
     if (timerstarted)
     {
         LapList.Add(stopwatch.DisplayTime);
         timerstarted = false;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Nulstiling af runde klik.
        /// </summary>

        private void Button_Reset_Click(object sender, RoutedEventArgs e)
        {
            timerstarted = false;
            foreach (var item in listOfTables.Children)
            {
                if (item is Controls.TablesControl)
                {
                    //(item as Controls.TablesControl).Model = new Models.TableModelN();
                    (item as Controls.TablesControl).Reset();
                }
            }

            stopwatch.Reset();
            LapList.Reset();
        }
Beispiel #3
0
        public List <DateTime> GetTimes(string id)
        {
            List <DateTime> laplist = null;

            try
            {
                laplist = Timers[id].GetTimes();
            }
            catch (Exception e)
            {
                laplist = new LapList();
            }

            return(laplist);
        }
Beispiel #4
0
 /// <summary>
 /// StopUr omgang klik.
 /// Tilføj omgang tiden til vores drag and drop list
 /// </summary>
 private void TimerControl_OnLap(TimeSpan obj)
 {
     LapList.Add(obj);
 }