Example #1
0
        private void GetDropCor()
        {
            CreaterCursor Cr = new CreaterCursor();

            this.Cursor = Cr.CreateCursor(Cr.btmap, 0, 0);

            CORProvider CORP = new CORProvider();

            CORColl = CORP.ReadCollectionByParameter(null, "NOME");

            cbCor.DisplayMember = "NOME";
            cbCor.ValueMember   = "IDCOR";

            COREntity CORTy = new COREntity();

            CORTy.NOME  = ConfigMessage.Default.MsgDrop;
            CORTy.IDCOR = -1;
            CORColl.Add(CORTy);

            Phydeaux.Utilities.DynamicComparer <COREntity> comparer = new Phydeaux.Utilities.DynamicComparer <COREntity>(cbCor.DisplayMember);

            CORColl.Sort(comparer.Comparer);
            cbCor.DataSource = CORColl;

            cbCor.SelectedIndex = 0;

            this.Cursor = Cursors.Default;
        }