Exemple #1
0
        private void btnEmployeeEdit_Click(object sender, EventArgs e)
        {
            EmployeeEditForm employeeEditForm = new EmployeeEditForm();

            employeeEditForm.MdiParent = this;
            employeeEditForm.Show();
            ClosePanelVisible();
        }
Exemple #2
0
        private void miUpdate_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count > 0)
            {
                object cellValue  = dataGridView1.SelectedRows[0].Cells["ID"].Value;
                int    employeeID = (int)cellValue;

                EmployeeEditForm editForm = new EmployeeEditForm(employeeID);
                editForm.MdiParent = this.MdiParent;
                editForm.Show();
            }
        }