public uc_TypeRegister() { InitializeComponent(); registerDAO = new TypesDAO(); 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 { TypesDAO dao = new TypesDAO(); TypesVO type = new TypesVO(); type.Name = txt_Name.Text; DataTable table = dao.SQLSearch(type); dgv_Listing.DataSource = table; } }