private void ponudaToolStripMenuItem_Click(object sender, EventArgs e) { if (frmAdmPonuda == null) { frmAdmPonuda = new FrmAdmPonuda(); frmAdmPonuda.MdiParent = this; frmAdmPonuda.Show(); frmAdmPonuda.Closed += frmAdmPonuda_Closed; } else { frmAdmPonuda.Focus(); } }
private void frmAdmPonuda_Closed(object sender, EventArgs e) { frmAdmPonuda = null; }