Esempio n. 1
0
        //add new Employee btn
        private void button4_Click(object sender, EventArgs e)
        {
            EmployeeForm addNewEmp = new EmployeeForm(SelectedSubDiv.SubDivisionId);

            addNewEmp.ShowDialog();
            PreviosDataLoad();
        }
Esempio n. 2
0
        private void EmployeeEditBtn_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("Нужно выделить строку из поля сотрудники");
                return;
            }
            int          impId     = (int)dataGridView1.SelectedRows[0].Cells[0].Value;
            EmployeeForm addNewEmp = new EmployeeForm(impId, SelectedSubDiv.SubDivisionId);

            addNewEmp.ShowDialog();
        }