public uc_EnvironmentRegister() { InitializeComponent(); registerDAO = new EnvironmentsDAO(); SugereProximoId = true; base.Inicializa(); }
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 { EnvironmentsDAO dao = new EnvironmentsDAO(); EnvironmentsVO type = new EnvironmentsVO(); type.Name = txt_Name.Text; DataTable table = dao.SQLSearch(type); dgv_Listing.DataSource = table; } }