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;
        }
 public RoomsEditorModifier(string varName, TgcRoomsEditor editor)
     : base(varName)
 {
     editorControl = new RoomsEditorControl(editor);
     contentPanel.Controls.Add(editorControl);
 }
Exemple #4
0
 public RoomsEditorModifier(string varName, TgcRoomsEditor editor)
     : base(varName)
 {
     editorControl = new RoomsEditorControl(editor);
     contentPanel.Controls.Add(editorControl);
 }