コード例 #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";
     }
 }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: othiago1/ListExample
        private void InicializarLista(object sender, EventArgs e)
        {
            Elemento elemento = new Elemento(lista.Count);

            lista.Adiciona(elemento);
        }