private void buttonAddBug_Click(object sender, EventArgs e) { dataGridViewList.Hide(); if (abf == null) { abf = new AddbugForm(); abf.MdiParent = this; abf.FormClosed += abf_FormClosed; abf.Show(); } else { abf.Activate(); } }
void abf_FormClosed(object sender, FormClosedEventArgs e) { abf = null; // throw new NotImplementedException(); }