private void m_pembelian_Click(object sender, EventArgs e) { if (pb == null) { pb = new Pembelian(); pb.MdiParent = this; pb.FormClosed += new FormClosedEventHandler(Pb_FormClosed); pb.Show(); } else { pb.Activate(); } }
private void Pb_FormClosed(object sender, FormClosedEventArgs e) { pb = null; }