コード例 #1
0
        private void cleanFileGDBStreetAndDistrictNamesToolStripMenuItem_Click(object sender, EventArgs e)
        {
            dlgSelectFolder.Description = "Please select Onwani FileGDB to clean (previously created with this tool)";
            if (dlgSelectFolder.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            var mTgtFileGDB = dlgSelectFolder.SelectedPath;

            dlgOpenMdbFile.Title    = "Please select latest 'adm-adr.mdb' PGeoDB for road names";
            dlgOpenMdbFile.Filter   = "ESRI Personal Geodatabase|*.mdb";
            dlgOpenMdbFile.FileName = "adm-adr.mdb";
            if (dlgOpenMdbFile.ShowDialog() != System.Windows.Forms.DialogResult.OK)
            {
                return;
            }
            var mSrcPGeoDB = dlgOpenMdbFile.FileName;

            ExtFunctions.CleanFileGDBNames(this, mTgtFileGDB, mSrcPGeoDB, "Address_unit_signs");
            ExtFunctions.CleanFileGDBNames(this, mTgtFileGDB, mSrcPGeoDB, "Street_name_signs");
            ExtFunctions.CleanFileGDBNames(this, mTgtFileGDB, mSrcPGeoDB, "Address_guide_sign");

            Log("Completed process");
        }