private void ModuleSaveButton_Click(object sender, EventArgs e)
        {
            String Code = ModuleCodeText.Text.Trim();
            String Name = ModuleTitleText.Text.Trim();

            if (Name.Equals("") || Code.Equals(""))
            {
                MessageBox.Show("Module Name/Code is empty.", "Error?", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            int cred;

            if (Credit15.Checked)
            {
                cred = 15;
            }
            else
            {
                cred = 30;
            }

            if (cred > maxcredit)
            {
                MessageBox.Show("Credit limit exceeded.", "Error?", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            if (module == null)
            {
                module = course.addModule(level, Code, Name, cred);
            }
            else
            {
                module.setCode(Code);
                module.setName(Name);
                module.setCredit(cred);
            }

            ListAssessments form = new ListAssessments(updateOnCloseHandler, module);

            this.Close();
            form.Show();
        }
 public void moduleAssessments_Click(object sender, EventArgs args)
 {
     ListAssessments form = new ListAssessments(updateTabFCEH, module);
     form.Show();
 }
        public void moduleAssessments_Click(object sender, EventArgs args)
        {
            ListAssessments form = new ListAssessments(updateTabFCEH, module);

            form.Show();
        }