public uc_InvestimentRegister()
 {
     InitializeComponent();
     registerDAO     = new InvestmentsDAO();
     SugereProximoId = true;
     base.Inicializa();
 }
Exemplo n.º 2
0
        private void btn_Pesquisar_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrEmpty(txt_Name.Text))
            {
                MessageBox.Show("Digite um valor válido para o nome.");
            }
            else
            {
                InvestmentsDAO dao = new InvestmentsDAO();

                InvestmentsVO statement = new InvestmentsVO();
                statement.Name = txt_Name.Text;

                DataTable table = dao.SQLSearch(statement);
                dgv_Listing.DataSource = table;
            }
        }