private void dataGridView1_DoubleClick(object sender, EventArgs e) { if (MessageBoxEx.Show("¿Desea Crear Una Cuenta de Usuario Para este Empleado.?", "Sistema de Ventas.", MessageBoxButtons.YesNoCancel) == DialogResult.Yes) { RegistrarUsuarios U = new RegistrarUsuarios(); Program.IdEmpleado = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value.ToString()); U.txtEmpleado.Text = dataGridView1.CurrentRow.Cells[4].Value.ToString() + ", " + dataGridView1.CurrentRow.Cells[5].Value.ToString(); U.txtRut.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString(); U.txtDV.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString(); U.txtCargo.Text = dataGridView1.CurrentRow.Cells[9].Value.ToString(); U.Show(); } }
private void btnUsuarios_Click(object sender, EventArgs e) { RegistrarUsuarios U = new RegistrarUsuarios(); U.Show(); }