public FullRun Clone() { FullRun fr = new FullRun(); fr.startDate = this.startDate; fr.endDate = this.endDate; fr.distance = this.distance; fr.vitesse = this.vitesse; fr.points = this.points; fr.journey = this.journey; return fr; }
private void Start_Click(object sender, EventArgs e) { if (!isRunStarted) { fullRun = new FullRun(); fullRun.startDate = DateTime.UtcNow; GridClickToStart.Margin = new Thickness(1000,0,0,0); dt = new DispatcherTimer(); dt.Interval = TimeSpan.FromMilliseconds(100); dt.Tick += delegate { updateTime(); }; dt.Start(); isRunStarted = true; } }