public MainPage()
        {
            state = new GPAState();
            fileexists = state.load(filepath);
            course = state.getCourse();

            InitializeComponent();

            level4Group = new LevelGroup(Level.LEVEL_4, Tab4ModulePanel);
            level5Group = new LevelGroup(Level.LEVEL_5, Tab5ModulePanel);
            level6Group = new LevelGroup(Level.LEVEL_6, Tab6ModulePanel);

            level4SummaryGroups = new List<SummaryModuleGroup>();
            level5SummaryGroups = new List<SummaryModuleGroup>();
            level6SummaryGroups = new List<SummaryModuleGroup>();

            tabControl1.Selected += new TabControlEventHandler(tabControl1_Selected);
        }
        public ModuleControlGroup(FormClosedEventHandler updateTabFCEH, EventHandler updateTabEH, Course course, Level level, int maxcredit, Module module, Panel root)
        {
            this.root = root;
            this.course = course;
            this.level = level;
            this.module = module;
            this.maxcredit = maxcredit;

            this.updateTabFCEH = updateTabFCEH;
            this.updateTabEH = updateTabEH;

            modCodeLabel = new Label();
            modName = new Label();
            modCerdits = new Label();

            modAssessments = new Button();
            modEdit = new Button();
            modDelete = new Button();

            modAvg = new Label();
            modStatus = new Label();
        }
 public AddCourse(Course course)
 {
     this.course = course;
     InitializeComponent();
 }