using System; using System.Collections.Generic; using System.Windows.Forms; using System.IO; namespace ShpViewer { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault( false ); try { OpenFileDialog ofd = new OpenFileDialog(); ofd.Filter = "SHP Files (*.shp)|*.shp|Terrain Files (*.tem; *.sno; *.int)|*.tem;*.sno;*.int|Map Files (*.ini;*.mpr)|*.ini;*.mpr|All Files (*.*)|*.*"; ofd.RestoreDirectory = true; if( ofd.ShowDialog() == DialogResult.OK ) Application.Run( new ShpViewForm( ofd.FileName ) ); } catch( Exception e ) { MessageBox.Show( e.ToString() ); } } } }