private void button1_Click(object sender, EventArgs e)
        {
            if (File.Exists("SavedData.xml"))
            {
                var confirmation = MessageBox.Show("Previous save found, would you like to load?",
                                                   "Load State",
                                                   MessageBoxButtons.YesNo);
                if (confirmation == DialogResult.Yes)
                {
                    Level_Select levelSelectForm = new Level_Select();
                    Level_Select.loadState = true;
                    this.Hide();
                    levelSelectForm.Activate();
                    levelSelectForm.ShowDialog();
                    this.Dispose();
                }
                else
                {
                    addCourseForm courseForm = new addCourseForm();

                    courseForm.Activate();
                    courseForm.ShowDialog();
                }
            }
            else
            {
                addCourseForm courseForm = new addCourseForm();

                courseForm.Activate();
                courseForm.ShowDialog();
            }
        }
        private void button1_Click(object sender, EventArgs e)
        {
            cd            = new Course();
            cd.CourseName = this.courseNameTxt.Text;
            cd.CourseCode = this.courseCodeTxt.Text;
            Level_Select levelSelectForm = new Level_Select();

            levelSelectForm.CD = this.CD;
            this.Close();
            this.Dispose();
            levelSelectForm.Activate();
            levelSelectForm.ShowDialog();
        }