Ejemplo n.º 1
0
 private void iniMapController()
 {
     this._map = new GMap();
     this._mapView = (IMapView)this.gMapView1;
     this._layersView = (ILayersView)this.gLayersView1;
     this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
 }
Ejemplo n.º 2
0
        private void initMap()
        {
            this._map = new GMap();
            this._mapView = this.gMapView1 as IMapView;

            this._layersView = this.gLayersView1 as ILayersView;
            this._mapController = new MapViewController(this._mapView, this._layersView, this._map);
            this._mapView.SetController(this._mapController);
        }
Ejemplo n.º 3
0
 public ThematicView2()
 {
     InitializeComponent();
     this._map = new GMap();
     this._mapView = (IMapView)this.gMapView1;
     this._layersView = (ILayersView)this.gLayersView1;
     this._mapView.SetParentDockControl(this.dockPanel1);
     this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
     this.Load += new EventHandler(ThematicView2_Load);
 }
Ejemplo n.º 4
0
 public MapViewUpdateController(
     IMapViewController mapViewController,
     IHeavyActionDistributor heavyActionDistributor,
     HeavyActionsBunchesExecutor.Factory heavyActionsBunchesExecutorFactory
     )
 {
     _heavyActionsBunchesExecutorFactory = heavyActionsBunchesExecutorFactory;
     _mapViewController      = mapViewController;
     _heavyActionDistributor = heavyActionDistributor;
     Initialize();
 }
Ejemplo n.º 5
0
        public MapController(
            MapViewUpdateController mapViewUpdateController,
            MapInfoUpdateController mapInfoUpdateController,
            IMapViewController mapViewController,
            IMapInfoController mapInfoController)
        {
            _mapViewUpdateController = mapViewUpdateController;
            _mapInfoUpdateController = mapInfoUpdateController;
            _mapViewController       = mapViewController;
            _mapInfoController       = mapInfoController;

            Initialize();
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Maps Module");

            this.viewController = this.container.GetExportedValue <IMapViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Maps Module initialized");
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Notifies the module that it has be initialized.
        /// </summary>
        public void Initialize()
        {
            logger.Debug("Initializing Maps Module");

            this.viewController = this.container.GetExportedValue<IMapViewController>();

            // Register for shutdown
            Commands.ApplicationShutdownCommand.RegisterCommand(new DelegateCommand(this.Shutdown));

            // Initialize the view controller
            this.viewController.Initialize();

            logger.Debug("Maps Module initialized");
        }
Ejemplo n.º 8
0
        public MainWindowController(ISettingsProvider settingsProvider, ITelemetryLoadController telemetryLoadController, ILapPickerController lapPickerController, IViewModelFactory viewModelFactory, IMainWindowViewModel mainWindowViewModel,
                                    ISnapshotSectionController snapshotSectionController, IMapViewController mapViewController, ITelemetryViewsSynchronization telemetryViewsSynchronization, IGraphPanelController[] graphPanelControllers, IAggregatedChartsController aggregatedChartsController)
        {
            _settingsProvider              = settingsProvider;
            _telemetryLoadController       = telemetryLoadController;
            _lapPickerController           = lapPickerController;
            _viewModelFactory              = viewModelFactory;
            _mainWindowViewModel           = mainWindowViewModel;
            _snapshotSectionController     = snapshotSectionController;
            _mapViewController             = mapViewController;
            _telemetryViewsSynchronization = telemetryViewsSynchronization;
            _aggregatedChartsController    = aggregatedChartsController;

            _leftGraphPanelController  = graphPanelControllers.First(x => x.IsLetPanel);
            _rightGraphPanelController = graphPanelControllers.First(x => !x.IsLetPanel);

            _snapshotSectionController.MainWindowViewModel = _mainWindowViewModel;
            _mapViewController.MapViewViewModel            = _mainWindowViewModel.MapViewViewModel;
        }
Ejemplo n.º 9
0
 public static void InitializeMapViewController(IMapViewController controller)
 {
     _mapViewController = controller;
 }
Ejemplo n.º 10
0
 public MapMenu(IMapViewController viewFactory)
 {
     // The only option is to open a map window, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.OpenMap, viewFactory.CanOpenMap);
 }
Ejemplo n.º 11
0
        public GMapView()
        {
            InitializeComponent();
            _mapControl = (IMapControl4)this.axMapControl1.Object;

            _map = new GMap();
            _map.SetHook(_mapControl);
            //_landDetailCmd = new OpenLandDetailCmd();
            //_landDetailCmd.SetMaThuaFieldName("mathua_");
            //_landDetailCmd.XemThongTin += _landDetailCmd_XemThongTin;
            _xemVungGiaDaCongBo = new XemTatCaVungGiaDaCongBo();
            _xemVungGiaDaTinh = new XemTatCaVungGiaDaTinh();
            _setHeSoViTri = new SetHesoVitri();
            //_moBangThuocTinh = new OpenTable();
            //_removeLayer = new RemoveLayerInToc();

            //_xemVungGiaDaTinh.XemVungGiaDat += new XemTatCaVungGiaDaTinh.XemGiaDatEventHandler(_xemVungGiaDaTinh_XemVungGiaDat);
            //_xemVungGiaDaCongBo.XemVungGiaDat += _xemVungGiaDaCongBo_XemVungGiaDat;
            //_moBangThuocTinh.OpenAttributeTable += new OpenTable.OpenTableEventHandler(_moBangThuocTinh_OpenAttributeTable);

            _mapContextMenu = new MapContextMenu(_mapControl);
            _mapContextMenu.SetKeyName("mathua","_mathua");

            //_mapContextMenu.SetLandPriceView("giadatcongbo", _landPriceView);
            //_tocContextMenu = new TocContextMenu(_mapControl);
            //_mapContextMenu.AddItem(_xemVungGiaDaCongBo, false, -1);
            //_contextMenu.AddItem(_landPriceTool, false, -1);
            //_mapContextMenu.AddItem(_xemVungGiaDaTinh, false, -1);
            //_landPriceTool = new Landprices();
            ////_landPriceTool.SetMaThuaFieldName("mathua_");
            //_landPriceTool.XemGiaDat += new Landprices.XemGiaDatEventHandler(_landPriceTool_XemGiaDat);

            //_mapContextMenu.AddItem()

            //_tocContextMenu.AddItem(_removeLayer, false, -1);
            _controller = new MapViewController(this, _map);
            //this._map = new GMap();
            //this._mapView = (IMapView)this;
            //this._layersView = (ILayersView)this.dpnLayers;
            //this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);
        }
Ejemplo n.º 12
0
 void IMapView.SetController(IMapViewController controller)
 {
     this._controller = controller;
 }
Ejemplo n.º 13
0
        private void iniMapController()
        {
            this._map = new GMap() ;
            this._mapView = (IMapView)this.gMapView1;
            this._layersView = (ILayersView)this.gLayersView1;
            this._mapView.SetParentDockControl(this.dpnMap4Thua);
            //FrmLandPriceInfo frmLandPriceView = FrmLandPriceInfo.CallMe;
            _xemVungGiaDatTinh = FrmLandPriceInfo.CallMe.GetView();
            _xemVungGiaDatTinh.Config = CurrentConfig.CallMe();
            _xemVungGiaDatCongBo = FrmLandPriceInfoPublic.CallMe.GetView();
            _xemVungGiaDatCongBo.Config = CurrentConfig.CallMe();
            this._mapView.SetLandpriceView("giadatcongbo", _xemVungGiaDatCongBo);
            this._mapView.SetLandpriceView("giadatdatinh",_xemVungGiaDatTinh);
            this._mapView.SetCalcMethodBuilderView(FrmCalcMethodBuilder.CallMe.GetView());

            _editPosView = FrmSetPositionParam.CallMe;
            _mapView.EditPosView = _editPosView;

            this._mapViewController = new MapViewController(this._mapView, this._layersView, this._map);

            this._mapControl=(IMapControl3)this._map.GetHook();
            this._tocControl = this._layersView.GetTocControl();

            //this._map4Thua = new GMap();
            //this._mapView4thua = this.gMapView1 as IMapView;
            //this._mapView4thua.SetParentDockControl(this.dpnMap4Thua);

            //this._layersView4Thua = this.gLayersView1 as ILayersView;
            //this._mapController4Thua = new MapViewController(this._mapView4thua, this._layersView4Thua, this._map4Thua);
            //this._mapView4thua.SetController(this._mapController4Thua);

            //_landPriceTool = new Landprices();
            //_landPriceTool.XemGiaDat += new Landprices.XemGiaDatEventHandler(landPriceTool_Changed);
            //_mapContextMenu = new MapContextMenu(_mapControl);
            //_mapContextMenu.AddItem(_landPriceTool, false, -1);
            //this._mapView.ContextMenu.AddItem(_landPriceTool,false,-1);
        }
Ejemplo n.º 14
0
 public MapMenu(IMapViewController viewFactory)
 {
     // The only option is to open a map window, which is this menu item itself
     this.OnClickCommand = new DelegateCommand(viewFactory.OpenMap, viewFactory.CanOpenMap);
 }
Ejemplo n.º 15
0
 public void Initialize(IMapViewController mapViewController)
 {
     _mapViewController = mapViewController;
 }