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); }
public MapViewController(IMapView map_view, ILayersView layers_view,IGMap map) { this._mapView = map_view; this._layersView = layers_view; this._map = map; this._layersView.SetMapBuddy(map_view.GetMapObject()); this._map.SetHook(map_view.GetMapObject()); }
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); }
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); }
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); }