Example #1
0
 private void InicializarLista(object sender, EventArgs e)
 {
     if (foi == false)
     {
         Elemento elemento = new Elemento(lista.Count);
         lista.Adiciona(elemento);
         foi = true;
         richTextBox1.Text = lista.RetornaLista();
     }
     else
     {
         label1.Text = "você já iniciou a lista";
     }
 }
        private void AdicionaElemento(object sender, EventArgs e)
        {
            Random r = new Random();
            //r.Next(1,100) + (2 * DateTime.Now.Second)
            Elemento elemento = new Elemento(lista.Count);

            lista.Adiciona(elemento);
            AtualizaListaNoForm();
        }
Example #3
0
        private void InicializarLista(object sender, EventArgs e)
        {
            Elemento elemento = new Elemento(lista.Count);

            lista.Adiciona(elemento);
        }