private void editarU() { PantallaUsuarioAgregar formAgregar = new PantallaUsuarioAgregar(this); string SeleccionU = lvUsuarios.SelectedItems[0].Text; // tomo el id del elemento seleccionado y lo guardo en selleccion formAgregar.lUsuarios = ListadoUsuarios; formAgregar.parent = this; formAgregar.ID = SeleccionU.ToString(); formAgregar.Show(); }
private void BntAgregar_Click(object sender, EventArgs e) { PantallaUsuarioAgregar form = new PantallaUsuarioAgregar(this); form.Show(); }