コード例 #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();
        }
コード例 #2
0
ファイル: MapForm1.cs プロジェクト: rupeshkumar399/seemapcell
 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();
 }