示例#1
0
        //Boton Buscar One
        private void btnSearch_Click(object sender, EventArgs e)
        {
            if (txtIdentification.Text.Trim() != "")
            {
                newProvider = daoProvider.selectProvider(txtIdentification.Text.Trim());

                var id = newProvider.Id;
                txtIdentification.Text = newProvider.Identification;
                txtName.Text           = newProvider.Name;
                txtAddress.Text        = newProvider.Adress;
                txtPhone.Text          = newProvider.Phone;
            }
            else
            {
                MessageBox.Show("Especifique una identificación de proveedor para la consulta", "Validación del Sistema", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
        }