private void miTalep_Click(object sender, EventArgs e) { if (frmR == null) { frmR = new frmRentAdd(); frmR.MdiParent = this; frmR.Show(); frmR.FormClosed += FrmR_FormClosed; } else { return; } }
public void FrmR_FormClosed(object sender, FormClosedEventArgs e) { frmR.Dispose(); frmR = null; }