Beispiel #1
0
        private void menuItemFileCloseTables_Click(object sender, System.EventArgs e)
        {
            SelectTablesDlg dlg = new SelectTablesDlg(Session.Current.Catalog.EnumerateTables());

            dlg.Text = "Close Tables";
            if (dlg.ShowDialog() == DialogResult.OK && dlg.SelectedTables != null)
            {
                foreach (Table t in dlg.SelectedTables)
                {
                    t.Close();
                }
                mapControl1.Map.Invalidate();
            }
            dlg.Dispose();
        }
Beispiel #2
0
 private void menuItemFileCloseTables_Click(object sender, System.EventArgs e)
 {
     SelectTablesDlg dlg = new SelectTablesDlg(Session.Current.Catalog.EnumerateTables());
     dlg.Text = "Close Tables";
     if (dlg.ShowDialog() == DialogResult.OK && dlg.SelectedTables != null)
     {
         foreach(Table t in dlg.SelectedTables)
         {
             t.Close();
         }
         mapControl1.Map.Invalidate();
     }
     dlg.Dispose();
 }