Ejemplo n.º 1
0
        private void loadFlagForm()
        {
            cbVariantA.Text = string.Empty;
            cbVariantB.Text = string.Empty;
            cbVariantC.Text = string.Empty;
            cbVariantD.Text = string.Empty;

            lbCount.Text = count.ToString();

            Flag flagB = new Flag();

            for (int countF = 0; globalFlagCount < flagDb.flagsList().Count() && countF < 4; globalFlagCount++, countF++)
            {
                flagB = flagDb.getConcreteFlag(globalFlagCount);
                arrayFlag.Add(flagB);
                arrayAnswers.Add(arrayFlag.ElementAt(countF).Name);
            }
            comboBoxLoad();

            foreach (var pb in arrayPb)
            {
                Draw(pb);
            }

            flagDb.clearWorkFlags();
        }
Ejemplo n.º 2
0
 private void loadFlagForm()
 {
     lbCount.Text = count.ToString();
     lbTime.Text  = "Время: 15 сек";
     timeLeft     = 15;
     //flag = flagDb.getConcreteFlag(count);
     flag = flagIter.CurrentItem();
     Draw();
     arrayBut.Add(btnVariantA);
     arrayBut.Add(btnVariantB);
     arrayBut.Add(btnVariantC);
     arrayBut.Add(btnVariantD);
     foreach (var btn in arrayBut)
     {
         btn.Enabled = true;
     }
     ShuffleList.Shuffle(arrayBut);
     foreach (var btn in arrayBut)
     {
         btn.Text = flagDb.getRandomFlag().Name;
     }
     trueButton       = arrayBut[0];
     arrayBut[0].Text = flag.Name;
     flagDb.clearWorkFlags();
 }