Esempio n. 1
0
        /// <summary>
        /// Crea el componente labelTextBox
        /// </summary>
        /// <param name="num">Numero de labelTextBox</param>
        /// <param name="flag">Texto del componente</param>
        public void crearLabelTextBox(int num, bool flag)
        {
            int j = 1;

            y = lbl.Location.Y + 20;
            for (int i = 0; i < num; i++)
            {
                labelText          = new LabelTextBox();
                labelText.Size     = new Size(20, 150);
                labelText.Location = new Point(lbl.Location.X - 20, y);
                labelText.Tamaño   = 60;
                if (flag)
                {
                    labelText.TextLbl = lista[i];
                }
                else
                {
                    labelText.TextLbl = "Jugador " + j;
                }

                labelText.Visible    = true;
                labelText.Separacion = 10;
                Controls.Add(labelText);
                y  += 30;
                mod = new Modo(labelText, false);
                modo.Add(mod);
                j++;
            }
        }
Esempio n. 2
0
 public Modo(LabelTextBox labelTextBox, bool bandera)
 {
     labelText = labelTextBox;
     flag      = bandera;
 }