Ejemplo n.º 1
0
 public uc_TypeRegister()
 {
     InitializeComponent();
     registerDAO     = new TypesDAO();
     SugereProximoId = true;
     base.Inicializa();
 }
Ejemplo 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
            {
                TypesDAO dao = new TypesDAO();

                TypesVO type = new TypesVO();
                type.Name = txt_Name.Text;

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