Esempio n. 1
0
        private void GetAllBanco()
        {
            BANCOColl = BANCOP.ReadCollectionByParameter(null, "NOMEBANCO");
            DataGriewDados.AutoGenerateColumns = false;
            DataGriewDados.DataSource          = BANCOColl;

            lblTotalPesquisa.Text = BANCOColl.Count.ToString();
        }
Esempio n. 2
0
        private void GetDropBanco()
        {
            BANCOProvider BANCOP = new BANCOProvider();

            BANCOColl = BANCOP.ReadCollectionByParameter(null, "NOMEBANCO");

            cbBanco.DisplayMember = "NOMEBANCO";
            cbBanco.ValueMember   = "IDBANCO";

            BANCOEntity BANCOTy = new BANCOEntity();

            BANCOTy.NOMEBANCO = ConfigMessage.Default.MsgDrop;
            BANCOTy.IDBANCO   = -1;
            BANCOColl.Add(BANCOTy);

            Phydeaux.Utilities.DynamicComparer <BANCOEntity> comparer = new Phydeaux.Utilities.DynamicComparer <BANCOEntity>(cbBanco.DisplayMember);

            BANCOColl.Sort(comparer.Comparer);
            cbBanco.DataSource = BANCOColl;

            cbBanco.SelectedIndex = 0;
        }