Beispiel #1
0
        /// <summary>
        /// Permanently deletes data file and data table file
        /// </summary>
        public void Delete()
        {
            if (m_datamapper != null)
            {
                m_dataheaderview.Dispose();
                m_dataheaderview = null;

                m_datamapper.Dispose();
                m_datamapper = null;

                if (File.Exists(this.DataFilename))
                {
                    File.Delete(this.DataFilename);
                }
            }

            if (m_datatablemapper != null)
            {
                m_datatableheaderview.Dispose();
                m_datatableheaderview = null;

                m_datatablemapper.Dispose();
                m_datatablemapper = null;

                if (File.Exists(this.DataTableFilename))
                {
                    File.Delete(this.DataTableFilename);
                }
            }
        }