private void btnGenerarVersion_Click(object sender, EventArgs e) { TestNegocio testNegocio = new TestNegocio(); testNegocio.agregarVersion(testLocal); List <UsuarioPrueba> listadoUP = new List <UsuarioPrueba>(); UsuarioPruebaNegocio upNegocio = new UsuarioPruebaNegocio(); listadoUP = upNegocio.obtenerUsuarioVersion(testLocal); upNegocio.pasarUsuariosVersion(listadoUP); List <SiniestroPrueba> listadoSP = new List <SiniestroPrueba>(); SiniestroPruebaNegocio spNegocio = new SiniestroPruebaNegocio(); listadoSP = spNegocio.obtenerSiniestroVersion(testLocal); spNegocio.pasarSiniestrosVersion(listadoSP); List <CasoPrueba> listadoCP = new List <CasoPrueba>(); CasoPruebaNegocio cpNegocio = new CasoPruebaNegocio(); listadoCP = cpNegocio.obtenerCasoVersion(testLocal); cpNegocio.pasarCasosVersion(listadoCP); this.Close(); testLocal.Version++; testLocal.Finalizado = false; Nuevo_Test frmNT = new Nuevo_Test(testLocal); frmNT.Show(); }
private void dgvResultadoBusqueda_CellClick(object sender, DataGridViewCellEventArgs e) { if (this.dgvResultadoBusqueda.Columns[e.ColumnIndex].Name == "Abrir") { Nuevo_Test frmTest = new Nuevo_Test((Test)dgvResultadoBusqueda.CurrentRow.DataBoundItem); this.Close(); frmTest.Show(); } }
private void dgvResultadoBusqueda_CellClick_1(object sender, DataGridViewCellEventArgs e) { if (this.dgvResultadoBusqueda.Columns[e.ColumnIndex].Name == "Abrir") { Ticket ticketLocal = (Ticket)dgvResultadoBusqueda.CurrentRow.DataBoundItem; Test testLocal = new Test(); testLocal.NTicket = ticketLocal.NTicket; testLocal.Sistema = ticketLocal.Sistema; testLocal.UsuarioT = ticketLocal.UsuarioTicket; testLocal.Prioridad = ticketLocal.Prioridad; testLocal.Asunto = ticketLocal.Asunto; testLocal.Descripcion = ticketLocal.Descripcion; Nuevo_Test frmTest = new Nuevo_Test(testLocal); this.Close(); frmTest.Show(); } }
private void nuevoToolStripMenuItem_Click(object sender, EventArgs e) { Nuevo_Test frmNuevo = new Nuevo_Test(usuarioLog); frmNuevo.MdiParent = this; frmNuevo.Show(); }