git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1058 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
32
ShpViewer/Program.cs
Normal file
32
ShpViewer/Program.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
|
||||
namespace ShpViewer
|
||||
{
|
||||
static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault( false );
|
||||
|
||||
try
|
||||
{
|
||||
OpenFileDialog ofd = new OpenFileDialog();
|
||||
ofd.Filter = "SHP Files|*.shp";
|
||||
if( ofd.ShowDialog() == DialogResult.OK )
|
||||
Application.Run( new ShpViewForm( ofd.FileName ) );
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
MessageBox.Show( e.ToString() );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user