private void btnCancelar_Click(object sender, EventArgs e) { switch (ListaPantallas) { case Pantallas.pantalla3: ListaPantallas = Pantallas.pantalla2; Recepcion2 frmObj = new Recepcion2(); AbrirFormHija(new Recepcion2()); btnAceptar.Enabled = true; break; case Pantallas.pantalla2: ListaPantallas = Pantallas.pantalla1; AbrirFormHija(new Recepcion()); btnCancelar.Text = "Cancelar"; break; case Pantallas.pantalla1: this.Dispose(); break; // default: // Console.WriteLine("Default case"); // break; } }
private void btnAceptar_Click(object sender, EventArgs e) { Recepcion2 frmObj = new Recepcion2(); frmObj.ShowDialog(); }