private void dataBarangToolStripMenuItem_Click(object sender, EventArgs e) { if (databarang == null) { databarang = new dataBarang(); databarang.MdiParent = this.MdiParent; databarang.FormClosed += new FormClosedEventHandler(Databarang_FormClosed); databarang.Show(); } else { databarang.Activate(); } }
private void Databarang_FormClosed(object sender, FormClosedEventArgs e) { databarang = null; }