Esempio n. 1
0
        private void OpenAreaEditor()
        {
            if (areaEditorToolStripMenuItem.Checked)
            {
                return;
            }

            areaEditor = new AreaEditor();

            if (currentRoom != null)
            {
                areaEditor.LoadArea(currentArea);
            }

            areaEditor.FormClosed += new FormClosedEventHandler(OnAreaEditorClose);
            areaEditorToolStripMenuItem.Checked = true;
            areaEditor.Show();
        }
Esempio n. 2
0
 private void OnAreaEditorClose(object sender, FormClosedEventArgs e)
 {
     areaEditor = null;
     areaEditorToolStripMenuItem.Checked = false;
 }