public AddPointMapView() { InitializeComponent(); _tool = ((App)Application.Current).GeoLayoutBuildingService.WaypointBuilder; DataContext = _tool; _locationModel = (GeoLocationViewModel)CoordinatesView.DataContext; _tool.PropertyChanged += _tool_PropertyChanged; _locationModel.PropertyChanged += _locationModel_PropertyChanged; }
public GeoLayoutBuildingService(WaypointsService waypointsService, GroupsService groupsService) { WaypointBuilder = new SingleWaypointBuilder(waypointsService, groupsService); ProfileBuilder = new ProfileBuilder(waypointsService, groupsService); GridBuilder = new GridBuilder(waypointsService, groupsService); ShiftModifier = new ShiftModifier(); RotateModifier = new RotateModifier(); CropModifier = new CropModifier(waypointsService); TdmLayoutBuilder = new TdmLayoutBuilder(waypointsService, groupsService); }