private void ingresarResultadoToolStripMenuItem_Click(object sender, EventArgs e) { if (vtnResultado == null) { this.cerrarVentanas(); vtnResultado = new IngresarResultado(); vtnResultado.MdiParent = this; vtnResultado.FormClosed += vtnResultado_FormClosed; vtnResultado.Show(); } else { vtnResultado.Activate(); } }
private void cerrarVentanas() { if (vtnTorneo != null) { vtnTorneo.Close(); vtnTorneo = null; } if (vtnEquipo != null) { vtnEquipo.Close(); vtnEquipo = null; } if (vtnResultado != null) { vtnResultado.Close(); vtnResultado = null; } if (vtnPartido != null) { vtnPartido.Close(); vtnPartido = null; } }
private void vtnResultado_FormClosed(object sender, FormClosedEventArgs e) { vtnResultado = null; }
private void button1_Click(object sender, EventArgs e) { IngresarResultado IngRs = new IngresarResultado(); IngRs.Show(); }