private FrmLandPriceInfoPublic() { InitializeComponent(); //_landprice = new GLandprice(); _view = (ILandpriceView)this.gLandPriceView1; _view.LandpriceTableName=DataNameTemplate.Thua_Gia_Dat; _view.SetContainer(this); _view.MapView.SetLandpriceView("giadatcongbo", _view); _view.IsAllowRecalcPoistion(false); //_landprice.SetView(_view); //_controller = new GLandpriceController(_landprice, _view); }
public GLandpriceController(ILandprice engine, ILandpriceView view) { this._view = view; this._engine = engine; }
void ILandpriceController.SetView(ILandpriceView view) { this._view = view; }
void IAttributeView.SetDetailView(ILandpriceView calcView, ILandpriceView publicView) { calcView.CalcController = _calcController; calcView.Excutor = _executor; publicView.CalcController = _calcController; publicView.Excutor = _executor; ((IAttributeQueryView)this.gTableView1).SetDetailView(calcView, publicView); }
void IMapContextMenu.SetLandPriceView(string key, ILandpriceView landpriceView) { _lstView.Add(new LandpriceViewPair(key, landpriceView)); }
void IMapView.SetLandpriceView(string key,ILandpriceView landpriceView) { if (key == "giadatdatinh") { _landPriceView = landpriceView; _mapContextMenu.SetLandPriceView(key, _landPriceView); _mapContextMenu.AddItem(_xemVungGiaDaTinh, false, -1); } else if (key == "giadatcongbo") { _landPricePublishedView = landpriceView; _mapContextMenu.SetLandPriceView("giadatcongbo", _landPricePublishedView); _mapContextMenu.AddItem(_xemVungGiaDaCongBo, false, -1); } //_landPriceView.Config = CurrentConfig.CallMe(); }
void IMapView.SetLandpricePublishedView(ILandpriceView view) { _landPricePublishedView = view; }
public FrmMainRibbonExtensible() { InitializeComponent(); //_fcName=new TnFeatureClassName() //this.dpnTinhGiaDatAll. initFiles(); iniConnectionMvc(); iniMapController(); initParams(); setupControllers(); _calcLandView = FrmLandPriceInfo.CallMe.GetView(); _publicLandView = FrmLandPriceInfoPublic.CallMe.GetView(); _calcLandView.SetCalcMethodBuilderView(FrmCalcMethodBuilder.CallMe.GetView()); _publicLandView.SetCalcMethodBuilderView(FrmCalcMethodBuilder.CallMe.GetView()); _calcMoniorForAtt = (ICalculationMonitor)this.gCalculatingView1; _executorForAtt = new Executor(_calcMoniorForAtt); _calcControllerForAtt = new CalculationController(); }
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); }
void IAttributeQueryView.SetDetailView(ILandpriceView calcView, ILandpriceView publicView) { throw new NotImplementedException(); }
public void SetView(ILandpriceView view) { if (_views == null) { _views = new List<ILandpriceView>(); } _views.Add(view); }
void IAttributeQueryView.SetDetailView(ILandpriceView calcView, ILandpriceView publicView) { _landPriceView = calcView; _landPricePublic = publicView; }
void ILandprice.SetView(ILandpriceView view) { this._view=view; }
public LandpriceViewPair(string key, ILandpriceView view) { Key = key; View = view; }
void ICalcMethodBuilderView.SetLandPriceView(ILandpriceView view) { this._landpriceView = view; }