Esempio n. 1
0
        void otvet_flowLayoutPanel2refresh(int i)         //
        {
            Labls ls = vnesli_v_spisok_otveta(i);

            flowLayoutPanel2.Controls.Add(ls);
            ls.Click += new EventHandler(this.Click_vibor_polzovatela);
        }
Esempio n. 2
0
        void vnesti_slovo_v_otvet(int i, Labls cucerrentLabel_tmp3)         //
        {
            Labls ls = vnesli_v_spisok_otveta(i, cucerrentLabel_tmp3);

            flowLayoutPanel2.Controls.Add(ls);
            ls.Click += new EventHandler(this.Click_vibor_polzovatela);
        }
Esempio n. 3
0
        private void Form1_Load(object sender, EventArgs e)
        {
            for (int i1 = 0; i1 < massiv_word_user_answer.Length; i1++)

            {
                massiv_word_user_answer[i1] = 0;
            }
            for (int i = 1; i <= 15; i++)
            {
                count_all_word++;
                Labls ls = vnesti_v_spisok_vibora(i);
                flowLayoutPanel1.Controls.Add(ls);

                ls.Click += new EventHandler(this.Click_vibor_polzovatela);
            }
        }
Esempio n. 4
0
        Labls vnesli_v_spisok_otveta(int i)
        {
            Labls l = new Labls();

            l.Name      = "" + i.ToString();
            l.Text      = "";
            l.ForeColor = Color.Black;
            l.BackColor = Color.White;
            l.Font      = new Font("Serif", 24, FontStyle.Regular);
            l.Width     = 180;
            l.Height    = 50;
            l.TextAlign = ContentAlignment.MiddleCenter;
            l.Margin    = new Padding(5);


            return(l);
        }
Esempio n. 5
0
        Labls vnesti_v_spisok_vibora(int i)
        {
            Labls l = new Labls();

            l.Name      = "" + i.ToString();
            l.Text      = "Labls" + i.ToString();
            l.ForeColor = Color.DarkBlue;
            l.BackColor = Color.Aqua;
            l.Font      = new Font("Serif", 24, FontStyle.Bold);
            l.Width     = 180;
            l.Height    = 50;
            l.TextAlign = ContentAlignment.MiddleCenter;
            l.Margin    = new Padding(5);

            l.position_in__true_answer = i;
            l.USER_answer_position     = 0;
            l.position_in_choice_list  = 0;
            return(l);
        }
Esempio n. 6
0
        void Click_vibor_polzovatela(object sender, EventArgs ev1)
        {
            Labls cucerrentLabel1 = (Labls)sender;

            //            public int position_in__true_answer;    // position of the word in the answer .true  position.
            //public int USER_answer_position;        // position of the USER answer .
            //public int position_in_choice_list;     // position of the word in the choice list.

            //NumInArr = int.Parse(cucerrentLabel1.Name);


            if (cucerrentLabel1.USER_answer_position == 0)
            {
                count_inpuut_word++;
                cucerrentLabel1.ForeColor = Color.Yellow;
                cucerrentLabel1.BackColor = Color.Red;
                otvet_flowLayoutPanel2refresh(count_inpuut_word);
            }
            else
            {
                ;
            }
        }
Esempio n. 7
0
        void Click_vibor_polzovatela(object sender, EventArgs ev1)
        {
            Labls cucerrentLabel1 = (Labls)sender;



            if (cucerrentLabel1.USER_answer_position == 0)
            {
                count_inpuut_word++;
                cucerrentLabel1.ForeColor            = Color.Yellow;
                cucerrentLabel1.BackColor            = Color.Red;
                cucerrentLabel1.USER_answer_position = 1;
                vnesti_slovo_v_otvet(count_inpuut_word, cucerrentLabel1);
            }
            else
            {
                cucerrentLabel1.ForeColor            = Color.DarkBlue;
                cucerrentLabel1.BackColor            = Color.Aqua;
                cucerrentLabel1.USER_answer_position = 0;
                //  flowLayoutPanel2refresh();
                ;
            }
        }