Exemplo n.º 1
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (department.departmentID == 0)
            {
                MessageBox.Show("Department Not Selected.");
                return;
            }

            AddDepartmentForm addDepartmentForm = new AddDepartmentForm(department.departmentID);

            addDepartmentForm.ShowDialog(this);
            dataGridViewDepartment.Rows.Clear();
            department.GetAllDepartmentList(dataGridViewDepartment);
        }
Exemplo n.º 2
0
        private void addDepartmentToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddDepartmentForm addDepartmentForm = new AddDepartmentForm();

            addDepartmentForm.ShowDialog(this);
        }