示例#1
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     Common.Common.id = getDepartmentId();
     Common.Common.cis_department.departmentCategoryId = getDepartmentCategoryId();
     Common.Common.cis_department.departmentCategory   = getDepartmentType();
     if ((Common.Common.cis_department.departmentCategoryId == 1 || Common.Common.cis_department.departmentCategoryId == 2 || Common.Common.cis_department.departmentCategoryId == 4 || Common.Common.cis_department.departmentCategoryId == 5) && (Common.Common.cis_department.departmentCategory == "Non-Medical"))
     {
         MessageBox.Show("Department Can't be Edited", "Message", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else
     {
         frmAddDepartment ObjAdd = new frmAddDepartment(Common.Common.id);
         ObjAdd.ShowDialog();
     }
 }
示例#2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmAddDepartment ObjAdd = new frmAddDepartment();

            ObjAdd.ShowDialog();
        }