Пример #1
0
        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            try
            {
                FiltroBusiness fl = new FiltroBusiness();

                fl.FiltrarFornecedores(textBox1.Text);

                dataGridView1.DataSource = fl.Fornecedores;
            }
            catch
            {
                MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Пример #2
0
        private void txt1_TextChanged(object sender, EventArgs e)
        {
            try
            {
                FiltroBusiness fl = new FiltroBusiness();

                fl.Filtrar(txt1.Text);

                gvAtendentes.DataSource = fl.Atendentes;
            }
            catch
            {
                MessageBox.Show("OCORREU UM ERRO!", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }