public WritePolygonNodes(ESRIData.Dataset dataset, TempData.TempFile pTempFile, VCTFile pVCTFile, int nNewEntityID) { m_dataset = dataset; m_pTempFile = pTempFile; m_VCTFile = pVCTFile; m_nNewEntityID = nNewEntityID; m_nLayerCount = m_dataset.GetLayerCount(); //WriteCommplete = null; }
//public event WriteCommpleteEventHandler WriteCommplete; /// <summary> /// mdb转vct控制类构造函数 /// </summary> /// <param name="strMDBFilePahtName">mdb文件路径</param> /// <param name="strVCTFilePahtName">vct文件路径</param> /// <param name="pDataType">数据源类型</param> public MDB2VCT(string strMDBFilePahtName, string strVCTFilePahtName,ArcDataType pDataType) { if (pDataType == ArcDataType.MDB) m_MDBFile = new MDBFile(true, strMDBFilePahtName); else m_MDBFile = new FGDBFile(true, strMDBFilePahtName); m_VCTFile = new VCTFile(false, strVCTFilePahtName); m_pTempFile = new DIST.DGP.DataExchange.VCT.TempData.TempFile(strVCTFilePahtName + ".tmp.mdb"); //WriteCommplete = null; }
public virtual void Dispose() { if (m_VCTFile != null) m_VCTFile.CloseFile(); m_VCTFile = null; Metadata.MetaDataFile.Dispose(); if (m_pTempFile != null) m_pTempFile.Close(); m_pTempFile = null; if (m_dataset != null) m_dataset.Dispose(); m_dataset = null; if (m_MDBFile != null) m_MDBFile.Dispose(); m_MDBFile = null; GC.Collect(); }