~peter-golde/carto/trunk

« back to all changes in this revision

Viewing changes to src/Cartographer/Commands.cs

  • Committer: Peter Golde
  • Date: 2008-12-16 07:21:10 UTC
  • Revision ID: peter@golde.org-20081216072110-u17ha89pb2hvgnas
Added Open File Dialog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
using System.Text;
5
5
using System.Windows;
6
6
using System.Windows.Input;
 
7
using Microsoft.Win32;
7
8
 
8
9
namespace Carto.Cartographer
9
10
{
19
20
 
20
21
        public void OpenCommand()
21
22
        {
22
 
            MessageBox.Show("Open Command");
 
23
            OpenFileDialog dialog = new OpenFileDialog();
 
24
            dialog.DefaultExt = ".ocd";
 
25
            dialog.Filter = MiscText.OcadFiles + "|*.ocd|" + MiscText.AllFiles + "|*.*";
 
26
            dialog.FilterIndex = 1;
 
27
            dialog.ShowDialog(mainWindow);
23
28
        }
24
29
    }
25
30
}