private void usuariosToolStripMenuItem_Click(object sender, EventArgs e) { inputBox dialogo = new inputBox(2); dialogo.ShowDialog(); USUARIO user = dialogo.getUsuario(); if (user != null) { AddUsers agregaUsuario = new AddUsers(2, user); agregaUsuario.ShowDialog(); } }
private void modificarEmpleadoToolStripMenuItem_Click(object sender, EventArgs e) { inputBox dialogo = new inputBox(1); dialogo.ShowDialog(); Empleado emp = dialogo.getEmpleado(); if (emp != null) { empleadoForm accionEmp = new empleadoForm(2, emp, this.fesc); accionEmp.ShowDialog(); } }