Ejemplo n.º 1
0
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            insert = new InsertModule();
            model.removeAll();                 //insert.populateEnglishTables();
            model.removeAllPhysicsQuestions(); //insert.pupulatePhysicsTable();
            model.removeAllMathsQuestions();
            if (comboList.SelectedItem == null)
            {
                linkQuit.Visibility   = Windows.UI.Xaml.Visibility.Collapsed;
                lblSelectedGrade.Text = "No Grade Selected";
            }

            if (model.getEnglish() == null)
            {
                insert.populateEnglishTables();
            }
            if (model.getMaths() == null)
            {
                insert.pupulateMathsTable();
                //insert.pupulateMathsTable();
            }
            if (model.getBusiness() == null)
            {
                insert.pupulateBusinessTable();
            }
            if (model.getAccounting() == null)
            {
                insert.pupulateAccountingTable();
            }
            if (model.getPhysics() == null)
            {
                insert.pupulatePhysicsTable();
            }
            comboList.Items.Add("GRADE 8");
            comboList.Items.Add("GRADE 10");
            comboList.Items.Add("GRADE 12");
            base.OnNavigatedFrom(e);
        }