示例#1
0
        private void buttonDepartmentAdd_Click(object sender, EventArgs e)
        {
            FormDepartmentDetail formDepartmentDetail = new FormDepartmentDetail();
            formDepartmentDetail.ShowDialog();

            refreshDataViewDepartment();
        }
示例#2
0
        private void buttonDepartmentAdd_Click(object sender, EventArgs e)
        {
            FormDepartmentDetail formDepartmentDetail = new FormDepartmentDetail();

            formDepartmentDetail.ShowDialog();

            refreshDataViewDepartment();
        }
示例#3
0
        private void dataViewDepartment_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataViewDepartment.SelectedRows.Count > 0)
            {
                int departmentID = Convert.ToInt16(dataViewDepartment.SelectedRows[0].Cells[0].Value);
                FormDepartmentDetail formDepartmentDetail = new FormDepartmentDetail(Department.GetDepartment(departmentID), "edit");
                formDepartmentDetail.ShowDialog();

                refreshDataViewDepartment();
            }
        }
示例#4
0
        private void buttonDepartmentEdit_Click(object sender, EventArgs e)
        {
            if (dataViewDepartment.SelectedRows.Count > 0)
            {
                int departmentID = Convert.ToInt16(dataViewDepartment.SelectedRows[0].Cells[0].Value);
                FormDepartmentDetail formDepartmentDetail = new FormDepartmentDetail(Department.GetDepartment(departmentID), "edit");
                formDepartmentDetail.ShowDialog();

                refreshDataViewDepartment();
            }
        }