public static SpatialContextInfo GetSpatialContext(FdoConnection conn)
 {
     FdoSpatialContextBrowserDlg diag = new FdoSpatialContextBrowserDlg(conn);
     if (diag.ShowDialog() == DialogResult.OK)
     {
         return diag.SelectedSpatialContext;
     }
     return null;
 }
        public static SpatialContextInfo GetSpatialContext(FdoConnection conn)
        {
            FdoSpatialContextBrowserDlg diag = new FdoSpatialContextBrowserDlg(conn);

            if (diag.ShowDialog() == DialogResult.OK)
            {
                return(diag.SelectedSpatialContext);
            }
            return(null);
        }