Beispiel #1
0
        private void btn_agremp_Click(object sender, EventArgs e)
        {
            Agregar dialogA = new Agregar();

            dialogA.id_adm = id;
            if (dialogA.ShowDialog() == DialogResult.OK)
            {
                UpdateDgv();
            }
        }
Beispiel #2
0
        private void btn_edtemp_Click(object sender, EventArgs e)
        {
            Agregar dialogB = new Agregar();

            dialogB.id_emp_mod = Convert.ToInt32(dgv_empleados.SelectedRows[0].Cells[0].Value);
            dialogB.Text       = "Editar empleado";
            if (dialogB.ShowDialog() == DialogResult.OK)
            {
                UpdateDgv();
            }
        }