예제 #1
0
파일: TestForm2.cs 프로젝트: UserTundra/hh
        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();
        }
예제 #2
0
파일: TestForm.cs 프로젝트: UserTundra/hh
        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();
        }