public void StartNewTrack() { this.SetTrack(new Track()); this.stopwatch.Reset(); this.Extendable = true; TrackUpdatedEventArgs args = new TrackUpdatedEventArgs(this.track); this.OnTrackUpdated(args); }
protected void TrackLocation(Location location) { if (!this.AddToTrack) { return; } this.track.Add(location); TrackUpdatedEventArgs args = new TrackUpdatedEventArgs(this.track); this.OnTrackUpdated(args); }
protected virtual void OnTrackUpdated(TrackUpdatedEventArgs e) { TrackUpdated?.Invoke(this, e); }