/// <summary> /// 初始化 /// </summary> /// <param name="roiController"></param> public void Init(ROIController roiController, HWndCtrl mView, GeoDataGridViewManager geoManager) { _roiController = roiController; _mView = mView; _geoManager = geoManager; if (_roiController != null) { _roiController.NotifyRCObserver += new IconicDelegate(resetFinalCheckedBox); } }
public bool Init(ROIController roicontroller, MeasureAssistant mAssistant , double resolution, int roundDigit, string[] inVisibleFields) { MessageLabel.Text = ""; var success = true; var model = new List<RefCoordinate>() { new RefCoordinate() { ID = "", Name = "Default", Desc = "影像座標" }, }; _dfCoordinateBindingList = new BindingList<RefCoordinate>(model); _geoManager = new GeoDataGridViewManager(GeoDataGridView, GeoContextMenuStrip , _dfCoordinateBindingList, inVisibleFields , ConfigurationMM.GeoImageDictionary , resolution, roundDigit, mAssistant); _roiController = roicontroller; initGeoContextMenu(); initCoordinateComboBox(); initLengthUnitComboBox(); initClearButton(); initExportButton(); initGeoTreeView(); return success; }