private void kupciToolStripMenuItem_Click(object sender, EventArgs e) { if (kupci == null) { kupci = new Kupci(); kupci.FormClosed += kup_FormClosed; kupci.MdiParent = this; kupci.Show(); kupci.WindowState = FormWindowState.Maximized; } else { kupci.Show(); kupci.WindowState = FormWindowState.Maximized; } }
void kup_FormClosed(object sender, FormClosedEventArgs e) { kupci = null; //throw new NotImplementedException(); }