Beispiel #1
0
 //Method to activate save button
 private void SaveButton_Click(object sender, EventArgs e)
 {
     if (RatedModules.Count() > 0)
     {
         module.ProcessSubScriptionChanges(RatedModules, student.GetStudentID());
     }
     this.Hide();
 }
        private void Register_Button_Click(object sender, EventArgs e)
        {
            int rowindex        = ModulesDataGrid.CurrentCell.RowIndex;
            int ModuleNameIndex = 0;

            string SelectedModule = ModulesDataGrid.Rows[rowindex].Cells[ModuleNameIndex].Value.ToString();

            debug_text.Text = SelectedModule;
            studyCourse.AddModules(student.GetStudentID(), SelectedModule);

            MessageBox.Show("Je inschrijving is succesvol voltooid!", "Succesvolle inschrijving", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }