Exemplo n.º 1
0
        public TestForm2(List <SimplyTest> tests, PupilSelectionWindow callback, TestParent parent, int time = 999999, int currentTestNumber = 1)
        {
            this.callback          = callback;
            this.parent            = parent;
            this.currentTestNumber = currentTestNumber;

            InitializeComponent();
            init();
            this.ElapsedTime    = this.parent.time;
            this.testCollection = tests;
            this.CurrentTest    = this.testCollection.FirstOrDefault();
        }
Exemplo n.º 2
0
        public TestForm(List <SimplyTest> tests, TestParent callback, int width, int height, int max_fails = 44, int time = 999999, string wrongAnswerImagePath = "")
        {
            InitializeComponent();

            this.Width                = width;
            this.Height               = height;
            this.callback             = callback;
            this.MAX_FAILS            = max_fails;
            this.ElapsedTime          = time;
            this.wrongAnswerImagePath = wrongAnswerImagePath;

            this.testCollection = tests;
            this.CurrentTest    = this.testCollection.FirstOrDefault();
        }