Esempio n. 1
0
        public Form1(string ime)
        {
            InitializeComponent();
            Ime            = ime;
            this.BackColor = Color.Gray;
            SelectedPen    = new Pen(Color.Blue, 5);
            doc            = new QuestionDocument();

            answerGraphics = new List <PictureBox>();
            answerGraphics.Add(pbAnswer1);
            answerGraphics.Add(pbAnswer2);
            answerGraphics.Add(pbAnswer3);
            answerGraphics.Add(pbAnswer4);

            questionGraphics = pbQuestion;

            DrawQuestion(0);

            currentQuestion = 0;

            AddButtonsToList();
            selectButton(ButtonList[currentQuestion]); // овде се избојува стартното прашање

            timer.Start();
            timeElapsed = 0;
        }
Esempio n. 2
0
        public Form1(string ime)
        {
            InitializeComponent();
            Ime = ime;
            this.BackColor = Color.Gray;
            SelectedPen = new Pen(Color.Blue, 5);
            doc = new QuestionDocument();

            answerGraphics = new List<PictureBox>();
            answerGraphics.Add(pbAnswer1);
            answerGraphics.Add(pbAnswer2);
            answerGraphics.Add(pbAnswer3);
            answerGraphics.Add(pbAnswer4);

            questionGraphics = pbQuestion;

            DrawQuestion(0);

            currentQuestion = 0;

            AddButtonsToList();
            selectButton(ButtonList[currentQuestion]); // овде се избојува стартното прашање

            timer.Start();
            timeElapsed = 0;
        }