Example #1
0
        private void FillFormData()
        {
            Random         r    = new Random();
            VarshamoveData data = new VarshamoveData();
            KeyValuePair <string[], string[]> item;

            if (_isTest)
            {
                item = data.Form1CodecData.First();
            }
            else
            {
                item = data.Form1CodecData.First();
            }

            string[] keys   = item.Key;
            string[] values = item.Value;

            nLabel.Text = keys[0];
            dLabel.Text = keys[0];

            //textBox1.Text = values[0];
            //textBox2.Text = values[1];
            //textBox3.Text = values[2];
            //textBox4.Text = values[3];


            correctAnswer = string.Join(",", item.Value);
        }
Example #2
0
        private void FillFormData()
        {
            Random         r    = new Random();
            VarshamoveData data = new VarshamoveData();
            KeyValuePair <string[], string[]> item;

            if (_isTest)
            {
                item = data.Form2CodecData.First();
            }
            else
            {
                item = data.Form2CodecData.First();
            }

            string[] keys   = item.Key;
            string[] values = item.Value;

            tuLabel.Text = keys[0];
            dLabel.Text  = keys[0];

            //text1.Text = values[0];
            //text2.Text = values[1];
            //text3.Text = values[2];
            //text4.Text = values[3];
            //text5.Text = values[4];
            //text6.Text = values[5];
            //text7.Text = values[6];
            //text8.Text = values[7];
            //text9.Text = values[8];
            //text10.Text = values[9];
            //text11.Text = values[10];
            //text12.Text = values[11];
            //text13.Text = values[12];
            //text14.Text = values[13];
            //text15.Text = values[14];
            //text16.Text = values[15];
            //text17.Text = values[16];
            //text18.Text = values[17];
            //text19.Text = values[18];
            //text20.Text = values[19];
            //text21.Text = values[20];
            //text22.Text = values[21];
            //text23.Text = values[22];
            //text24.Text = values[23];
            //text25.Text = values[24];
            //text26.Text = values[25];
            //text27.Text = values[26];
            //text28.Text = values[27];
            //text29.Text = values[28];
            //text30.Text = values[29];
            //text31.Text = values[30];
            //text32.Text = values[31];
            //text33.Text = values[32];
            //text34.Text = values[33];
            //text35.Text = values[34];
            //text36.Text = values[35];
            //text37.Text = values[36];
            //text38.Text = values[37];
            //text39.Text = values[38];
            //text40.Text = values[39];
            //text41.Text = values[40];
            //text42.Text = values[41];
            //text43.Text = values[42];
            //text44.Text = values[43];
            //text45.Text = values[44];
            //text46.Text = values[45];
            //text47.Text = values[46];
            //text48.Text = values[47];
            //text49.Text = values[48];
            //text51.Text = values[49];
            //text52.Text = values[50];
            //text53.Text = values[51];
            //text54.Text = values[52];

            correctAnswer = string.Join(",", item.Value);
        }