Пример #1
0
 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);
 }
Пример #2
0
 public GLandpriceController(ILandprice engine, ILandpriceView view)
 {
     this._view = view;
     this._engine = engine;
 }
Пример #3
0
 void ILandpriceController.SetView(ILandpriceView view)
 {
     this._view = view;
 }
Пример #4
0
 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);
 }
Пример #5
0
 void IMapContextMenu.SetLandPriceView(string key, ILandpriceView landpriceView)
 {
     _lstView.Add(new LandpriceViewPair(key, landpriceView));
 }
Пример #6
0
 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();
 }
Пример #7
0
 void IMapView.SetLandpricePublishedView(ILandpriceView view)
 {
     _landPricePublishedView = view;
 }
Пример #8
0
        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();
        }
Пример #9
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);
        }
Пример #10
0
 void IAttributeQueryView.SetDetailView(ILandpriceView calcView, ILandpriceView publicView)
 {
     throw new NotImplementedException();
 }
Пример #11
0
 public void SetView(ILandpriceView view)
 {
     if (_views == null)
     {
         _views = new List<ILandpriceView>();
     }
     _views.Add(view);
 }
Пример #12
0
 void IAttributeQueryView.SetDetailView(ILandpriceView calcView, ILandpriceView publicView)
 {
     _landPriceView = calcView;
     _landPricePublic = publicView;
 }
Пример #13
0
 void ILandprice.SetView(ILandpriceView view)
 {
     this._view=view;
 }
Пример #14
0
 public LandpriceViewPair(string key, ILandpriceView view)
 {
     Key = key;
     View = view;
 }
Пример #15
0
 void ICalcMethodBuilderView.SetLandPriceView(ILandpriceView view)
 {
     this._landpriceView = view;
 }