public static void ProcessDrawButtonClick(StorageInterface storage, PathView pathView) { var pathPoints = GetPathData(storage); var xyMinMax = PointUtils.GetXYMinMax(pathPoints); pathView.XMin = xyMinMax.Item1; pathView.YMin = xyMinMax.Item2; pathView.XMax = xyMinMax.Item3; pathView.YMax = xyMinMax.Item4; var gpsCoordinates = PointUtils.PathDataToGpsCoordinates(pathPoints); pathView.SetPoints(gpsCoordinates); pathView.Invalidate(); }
public static void ProcessTrackButtonClick( StorageInterface storage, EventsConnectionManager eventConnectionManager, GpsLocationManager locationManager, PathView pathView) { eventConnectionManager.ConnectForTracking(); locationManager.Start(); }