Ejemplo n.º 1
0
        private void dgvcargo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmCargo        car      = new frmCargo();
            DataGridViewRow rellenar = dgvcargo.Rows[e.RowIndex];

            car.txtId.Text          = rellenar.Cells["idcargo"].Value.ToString();
            car.txtdescriccion.Text = rellenar.Cells["descricargo"].Value.ToString();
            car.Show();
        }
Ejemplo n.º 2
0
        private void btneliminar_Click(object sender, EventArgs e)
        {
            Operaciones op = new Operaciones();
            frmCargo    ca = new frmCargo();

            if (MessageBox.Show("SEGURO QUE DESEA ELIMINAR ESTE REGISTRO?", "ELIMINAR ", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)

            {
                op.ConsultasSinResultados("DELETE FROM cargo WHERE idcargo = '" + txtId.Text + "'");
                txtdescriccion.Text = "";
            }
        }
Ejemplo n.º 3
0
        private void cargoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmCargo ca = new frmCargo();

            ca.Show();
        }
Ejemplo n.º 4
0
        private void btncrear_Click(object sender, EventArgs e)
        {
            frmCargo ca = new frmCargo();

            ca.Show();
        }