예제 #1
0
        public AddPointMapView()
        {
            InitializeComponent();

            _tool       = ((App)Application.Current).GeoLayoutBuildingService.WaypointBuilder;
            DataContext = _tool;

            _locationModel = (GeoLocationViewModel)CoordinatesView.DataContext;

            _tool.PropertyChanged          += _tool_PropertyChanged;
            _locationModel.PropertyChanged += _locationModel_PropertyChanged;
        }
예제 #2
0
        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);
        }