private void laporanPenjualanToolStripMenuItem_Click(object sender, EventArgs e) { if (laporan == null) { laporan laporan = new laporan(); laporan.MdiParent = this; laporan.FormClosed += new FormClosedEventHandler(Laporan_FormClosed); laporan.Show(); } else { laporan.Activate(); } }
private void Laporan_FormClosed(object sender, FormClosedEventArgs e) { laporan = null; }