Exemplo n.º 1
0
        private void frmTakeTest_Load(object sender, EventArgs e)
        {
            this.Text          += " - " + student.FirstName + " " + student.LastName;
            lblStudentName.Text = student.FirstName + " " + student.LastName;
            lblClassName.Text   = klass.KlassName;

            switch (this.Tag.ToString())
            {
            case "placement":

                gradedPlacementTest = new GradedPlacementTest();
                gradedPlacementTest.PlacementTest = (PlacementTest)test;
                gbxQuestion.Text  = "Placement Test";
                this.Text         = "Placement Test";
                lblTimerTest.Text = gradedPlacementTest.PlacementTest.TimeLimit.Minutes.ToString("00") + ":" + gradedPlacementTest.PlacementTest.TimeLimit.Seconds.ToString("00");

                break;

            case "practice":

                gradedPracticeTest = new GradedPracticeTest();
                gradedPracticeTest.PracticeTest = (PracticeTest)test;
                this.Text         = "Practice Test";
                gbxQuestion.Text  = "Practice Test";
                lblTimerTest.Text = gradedPracticeTest.PracticeTest.TimeLimit.Minutes.ToString("00") + ":" + gradedPracticeTest.PracticeTest.TimeLimit.Seconds.ToString("00");

                break;

            case "mastery":

                gradedMasteryTest             = new GradedMasteryTest();
                gradedMasteryTest.MasteryTest = (MasteryTest)test;
                this.Text         = "Mastery Test";
                gbxQuestion.Text  = "Mastery Test";
                lblTimerTest.Text = gradedMasteryTest.MasteryTest.TimeLimit.Minutes.ToString("00") + ":" + gradedMasteryTest.MasteryTest.TimeLimit.Seconds.ToString("00");

                break;
            }

            btnStartFinish.Text = "Start Test";
            gbxQuestion.Text    = "";

            gbxQuestion.Hide();
        }
Exemplo n.º 2
0
 //full constructor
 public Student(string username, string firstName, string lastName, string password, int masteryLevel, GradedPlacementTest gradedPlacementTest, List <GradedPracticeTest> gradedPracticeTests, List <GradedMasteryTest> gradedMasteryTests) : base(username, firstName, lastName, password)
 {
     this.MasteryLevel        = masteryLevel;
     this.GradedPlacementTest = gradedPlacementTest;
     this.GradedPracticeTests = gradedPracticeTests;
     this.GradedMasteryTests  = gradedMasteryTests;
 }