private void TimerControl_OnStop() { if (timerstarted) { LapList.Add(stopwatch.DisplayTime); timerstarted = false; } }
/// <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(); }
public List <DateTime> GetTimes(string id) { List <DateTime> laplist = null; try { laplist = Timers[id].GetTimes(); } catch (Exception e) { laplist = new LapList(); } return(laplist); }
/// <summary> /// StopUr omgang klik. /// Tilføj omgang tiden til vores drag and drop list /// </summary> private void TimerControl_OnLap(TimeSpan obj) { LapList.Add(obj); }