private void kupacToolStripMenuItem_Click(object sender, EventArgs e) { if (frmAdmKupac == null) { frmAdmKupac = new FrmAdmKupac(); frmAdmKupac.MdiParent = this; frmAdmKupac.Show(); frmAdmKupac.Closed += frmAdmKupac_Closed; } else { frmAdmKupac.Focus(); } }
private void frmAdmKupac_Closed(object sender, EventArgs e) { frmAdmKupac = null; }