Exemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            List <String[]> list = new List <String[]>();

            controller = new controllerUnidadeMedida();
            list       = controller.PesquisaTudoIncompleto(txtNome.Text);
            for (int i = 0; i < list.Count; i++)
            {
                for (int x = 0; x < list.Count; x++)
                {
                    MessageBox.Show(list[i][x].ToString());
                    if (list.Count == 1)
                    {
                        txtNome.Text  = list[i][x].ToString();
                        txtSigla.Text = list[i][x + 1].ToString();
                    }
                }
            }
        }