private void laporanDistributorToolStripMenuItem_Click(object sender, EventArgs e) { if (distri == null) { distri = new L_distri(); distri.MdiParent = this; distri.FormClosed += new FormClosedEventHandler(L_distri_Closed); distri.Show(); } else { distri.Activate(); } }
void L_distri_Closed(object sender, FormClosedEventArgs e) { distri = null; }