Esempio n. 1
0
 // Display the File Open dialog to let the user choose table(s) to open.
 private void openToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // Prompt the user to open one or more TAB files
     if (OpenDlg.ShowDialog(this) == DialogResult.OK)
     {
         // Close window and tables, if they exist
         if (map != null)
         {
             map.CloseWindow();
             CloseAllTables();
             map = null;
         }
         // Create a new map
         NewMap(OpenDlg.FileNames);
         // Enable the tool picker
         comboBoxMapTool.Enabled = true;
     }
 }
Esempio n. 2
0
 private void CloseWindow(MapWindow mapToClose)
 {
     mapToClose.CloseWindow();
 }