示例#1
0
文件: Form1.cs 项目: jesumarquez/lt
        private void btNewEmp_Click(object sender, EventArgs e)
        {
            var empform = new NewEmpleado();

            empform.Closed += empform_Closed;
            empform.ShowDialog();
        }
示例#2
0
文件: Form1.cs 项目: jesumarquez/lt
        private void dataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            var empform = new NewEmpleado();

            empform.Closed += empform_Closed;
            var emp = dataGridView1.Rows[e.RowIndex].DataBoundItem as empleado;

            empform.ShowEmpleado(emp);
            empform.ShowDialog();
        }