예제 #1
0
        protected void editar(DataGridViewCellEventArgs e)
        {
            string       cedula   = this.grw_empleados.Rows[e.RowIndex].Cells[1].Value.ToString();
            frm_empleado empleado = new frm_empleado(cedula, grw_empleados.Rows[e.RowIndex]);

            empleado.ShowDialog();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            frm_empleado empleado = new frm_empleado();

            empleado.Owner = this;
            empleado.ShowDialog();
        }