public RoomsEditorControl(TgcRoomsEditor editor)
        {
            InitializeComponent();

            this.editor = editor;
            this.mapView = new RoomsEditorMapView(this);
            this.helpWindow = new RoomsEditorHelpWindow();

            //openMapDialog
            openMapDialog = new OpenFileDialog();
            openMapDialog.CheckFileExists = true;
            openMapDialog.Title = "Select a Map file";
            openMapDialog.Filter = ".XML |*.xml";
            openMapDialog.Multiselect = false;
            openMapDialog.InitialDirectory = GuiController.Instance.ExamplesMediaDir;

            //saveDialog
            saveDialog = new SaveFileDialog();
            saveDialog.DefaultExt = ".xml";
            saveDialog.Filter = ".XML |*.xml";
            saveDialog.AddExtension = true;
        }
        public RoomsEditorControl(TgcRoomsEditor editor)
        {
            InitializeComponent();

            this.editor     = editor;
            this.mapView    = new RoomsEditorMapView(this);
            this.helpWindow = new RoomsEditorHelpWindow();

            //openMapDialog
            openMapDialog = new OpenFileDialog();
            openMapDialog.CheckFileExists  = true;
            openMapDialog.Title            = "Select a Map file";
            openMapDialog.Filter           = ".XML |*.xml";
            openMapDialog.Multiselect      = false;
            openMapDialog.InitialDirectory = GuiController.Instance.ExamplesMediaDir;

            //saveDialog
            saveDialog              = new SaveFileDialog();
            saveDialog.DefaultExt   = ".xml";
            saveDialog.Filter       = ".XML |*.xml";
            saveDialog.AddExtension = true;
        }