private void firmapodatciToolStripMenuItem_Click(object sender, EventArgs e) { if (firma == null) { firma = new Tvrtka(); firma.MdiParent = this; firma.FormClosed += firma_FormClosed; firma.Show(); firma.WindowState = FormWindowState.Maximized; } else { firma.Activate(); } }
void firma_FormClosed(object sender, FormClosedEventArgs e) { firma = null; //throw new NotImplementedException(); }