Ejemplo n.º 1
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     if (time)
     {
         lbBest.Text = Convert.ToString(Properties.Settings.Default.bestStreakClassicTime);
         splitContainer1.Panel2Collapsed = false;
         tmAnswer.Enabled = true;
     }
     else
     {
         lbBest.Text = Convert.ToString(Properties.Settings.Default.bestStreakClassic);
         splitContainer1.Panel2Collapsed = true;
         tmAnswer.Enabled = false;
     }
     flagDb.LoadXml(path + @"\FlagDatabaseRU.xml");
     loadFlagForm();
 }
Ejemplo n.º 2
0
        private void MultipleFlags_Load(object sender, EventArgs e)
        {
            flagDb.LoadXml(path + @"\FlagDatabaseRU.xml");

            arrayPb.Add(pbFlag1);
            arrayPb.Add(pbFlag2);
            arrayPb.Add(pbFlag3);
            arrayPb.Add(pbFlag4);

            arrayCb.Add(cbVariantA);
            arrayCb.Add(cbVariantB);
            arrayCb.Add(cbVariantC);
            arrayCb.Add(cbVariantD);

            lbBest.Text = Convert.ToString(Properties.Settings.Default.bestStreakMultiple);

            loadFlagForm();
        }