private void btnTinhFrmAll_Click(object sender, EventArgs e) { _calc = new Executor(); _calcView = (ICalculationView)this; //con cai dat config //... setValue4InputParams(); _calcView.SetInputParams(_inputParams); //CalculatingMonitor f = new CalculatingMonitor(); _calc.AddMonitors(this._lstMonitor); _calcController = new CalculationController(_calcView, _calc); //MessageBox.Show("bat dau tinh"); //MessageBox.Show(_lstMonitor.Count.ToString()); foreach (ICalculationMonitor m in this._lstMonitor) { m.Show(); } //MessageBox.Show(string.Format("GCalculationView - so luong monitor:{0}", _lstMonitor.Count)); _calcController.ReqStart(); }
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(); }