private void OpenWarpEditor() { if (warpEditorToolStripMenuItem.Checked) { warpEditor.Focus(); return; // dont open a second one } warpEditor = new WarpEditorWindow(); 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); }