private void OpenWarpEditor() { if (warpEditorToolStripMenuItem.Checked) { return; // dont open a second one } warpEditor = new WarpEditor(); warpEditor.FormClosed += new FormClosedEventHandler(OnWarpEditorClose); warpEditorToolStripMenuItem.Checked = true; warpEditor.Show(); }
private void OnWarpEditorClose(object sender, FormClosedEventArgs e) { warpEditor = null; warpEditorToolStripMenuItem.Checked = false; HighlightWarp(-1, -1); }