Exemple #1
0
        //calls methods(from ConnectDB class) to populate Disadvantaged only data
        private void btnDisadvantaged_Click(object sender, EventArgs e)
        {
            int num = 5;

            cdb.queryDatabase(num, this);
            cdb.gradeWorkout(this);
            cdb.calculateTotalAndAverage(this);
            NationalData nd = new NationalData();

            nd.generateNationalData(this);
            //formatting
            autoSizeColumns();
            readAndSetData();
            conditionalFormatDataTable();
        }
Exemple #2
0
        //Retrives and displays all of the information on the class selected
        private void btnPopulateFullClass_Click(object sender, EventArgs e)
        {
            int num = 1;

            cdb.queryDatabase(num, this);
            autoSizeColumns();
            //call things to do the maths.
            cdb.gradeWorkout(this);
            cdb.calculateTotalAndAverage(this);
            NationalData nd = new NationalData();

            nd.generateNationalData(this);
            //formatting
            readAndSetData();
            conditionalFormatDataTable();
        }