private void btnDebug_Click(object sender, EventArgs e) { if (_formDebug == null) { _formDebug = new FormDebug(_evoEngine); _formDebug.FormClosed += formDebug_FormClosed; _formDebug.Show(); btnDebug.Enabled = false; } }
private void formDebug_FormClosed(object sender, FormClosedEventArgs e) { _formDebug = null; btnDebug.Enabled = true; }