private void buttonListBug_Click(object sender, EventArgs e) { dataGridViewList.Hide(); if (lbf == null) { lbf = new ListbugForm(); lbf.MdiParent = this; lbf.FormClosed += lbf_FormClosed; lbf.Show(); } else { lbf.Activate(); } }
void lbf_FormClosed(object sender, FormClosedEventArgs e) { lbf = null; //throw new NotImplementedException(); }