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(); }
private void OnAreaEditorClose(object sender, FormClosedEventArgs e) { areaEditor = null; areaEditorToolStripMenuItem.Checked = false; }