private MeasureModel mapMeasureToMeasureModel(Measure measure) { MeasureModel measureModel = new MeasureModel(); measureModel.MeasureId = measure.measureid; measureModel.Type = measure.type; return measureModel; }
public AddField() { InitializeComponent(); MeasureModel measureModel = new MeasureModel(); GetAllMeasuresCallback handler = new GetAllMeasuresCallback(GetAllMeasuresCompleted); measureModel.GetAllMeasures(new Action<List<MeasureModel>>(handler)); Latitude = 48.3669; Longitude = 14.5172; mapMain.Center = new GeoCoordinate(Latitude, Longitude); mapMain.ZoomLevel = 15; mapMain.ZoomBarVisibility = Visibility.Visible; coordinateWatcher = new GeoCoordinateWatcher(GeoPositionAccuracy.High); coordinateWatcher.PositionChanged += new EventHandler<GeoPositionChangedEventArgs<GeoCoordinate>>(coordinateWatcher_PositionChanged); }