private void URAPoreznaToolStripMenuItem_Click(object sender, EventArgs e) { if (ura == null) { ura = new FormURA(); ura.MdiParent = this; ura.FormClosed += Ura_FormClosed; ura.Show(); ura.WindowState = FormWindowState.Maximized; } else { ura.BringToFront(); } }
void Ura_FormClosed(object sender, FormClosedEventArgs e) { ura = null; //throw new NotImplementedException(); }