Exemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            controller = new controllerUnidadeMedida();
            List <String> item = controller.PesquisaUm(txtNome.Text);

            if (item == null)
            {
                MessageBox.Show("A Unidade informada não existe. \nVerifique o nome e tente novamente",
                                "Este item não existe",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Information);
            }
            else
            {
                //MessageBox.Show(item[1] + " " + item[0]);
                txtSigla.Text = item[1];
            }
        }