private void searchCommandToolStripMenuItem_Click(object sender, EventArgs e) { if (_searchCommandWindow == null) { _searchCommandWindow = new SearchCommandWindow(ScriptFile); _searchCommandWindow.FormClosed += _searchCommandWindow_FormClosed; } _searchCommandWindow.Show(); }
private void _searchCommandWindow_FormClosed(object sender, FormClosedEventArgs e) { _searchCommandWindow = null; }