public frmEmpDashboard(string user, string firstName, bool isAdmin, bool isConvenor, bool isSupervisor)
        {
            InitializeComponent();
            User      = user;
            this.Text = ("Welcome " + firstName + "!");

            //for testing: MessageBox.Show("Form initialised. isAdmin: " + isAdmin + "; isConvenor: " + isConvenor + "; isSupervisor: " + isSupervisor);

            //Enable menus based on user's type --> except a user may have many types
            if (isAdmin) //(user == "admin")
            {
                administratorFunctionsToolStripMenuItem.Enabled = true;

                frmStuDetails           = new frmStuDetails(user, isAdmin); //to be updated soon...
                frmStuDetails.MdiParent = this;

                frmUnits           = new frmUnits(true);
                frmUnits.MdiParent = this;

                frmUnitOfferings           = new frmUnitOfferings(user, isAdmin);
                frmUnitOfferings.MdiParent = this;

                frmEnrolments           = new frmEnrolments(user, isAdmin);
                frmEnrolments.MdiParent = this;

                frmReports         = new frmReports(user, isAdmin);
                frmUnits.MdiParent = this;
            }
            else
            {
                administratorFunctionsToolStripMenuItem.Enabled = false;
            }

            if (isSupervisor) //(user == "supervisor")
            {
                supervisorFunctionsToolStripMenuItem.Enabled = true;

                frmMeeting           = new frmMeeting(user, isSupervisor);
                frmMeeting.MdiParent = this;

                frmAssessment           = new frmAssessment(user, isConvenor, isSupervisor);
                frmAssessment.MdiParent = this;

                frmTeamDetails           = new frmTeamDetails(user, isConvenor, isSupervisor);
                frmTeamDetails.MdiParent = this;

                frmProject           = new frmProject(user, isConvenor, isSupervisor);
                frmProject.MdiParent = this;
            }
            else
            {
                supervisorFunctionsToolStripMenuItem.Enabled = false;
            }

            if (isConvenor) //(user == "convenor")
            {
                convenorFunctionsToolStripMenuItem.Enabled = true;

                frmAssessment           = new frmAssessment(user, isConvenor, isSupervisor);
                frmAssessment.MdiParent = this;

                frmTeamDetails           = new frmTeamDetails(user, isConvenor, isSupervisor);
                frmTeamDetails.MdiParent = this;

                //ensures that the frmUnits won't be overwritten if the user is also an admin
                if (!isAdmin)
                {
                    frmUnits           = new frmUnits(false);
                    frmUnits.MdiParent = this;
                }

                //ensures that the frmUnitOfferings won't be overwritten if the user is also an admin
                if (!isAdmin)
                {
                    frmUnitOfferings           = new frmUnitOfferings(user, isAdmin);
                    frmUnitOfferings.MdiParent = this;
                }

                frmProject           = new frmProject(user, isConvenor, isSupervisor);
                frmProject.MdiParent = this;
            }
            else
            {
                convenorFunctionsToolStripMenuItem.Enabled = false;
            }

            frmEmpDetails           = new frmEmpDetails(user, isAdmin);
            frmEmpDetails.MdiParent = this;
        }
 private void adminDropdownManageEmployees_Click(object sender, EventArgs e)
 {
     frmEmpDetails           = new frmEmpDetails(User, true);
     frmEmpDetails.MdiParent = this;
     openEmployeeForm();
 }
 private void personalDetailsMenu_Click(object sender, EventArgs e)
 {
     frmEmpDetails           = new frmEmpDetails(User, false);
     frmEmpDetails.MdiParent = this;
     openEmployeeForm();
 }