private void GetDropMarca() { try { MARCAProvider MARCAP = new MARCAProvider(); MARCACollection MarcaColl = new MARCACollection(); MarcaColl = MARCAP.ReadCollectionByParameter(null, "NOME"); cbMarca.DisplayMember = "NOME"; cbMarca.ValueMember = "IDMARCA"; MARCAEntity MARCATy = new MARCAEntity(); MARCATy.NOME = ConfigMessage.Default.MsgDrop; MARCATy.IDMARCA = -1; MarcaColl.Add(MARCATy); Phydeaux.Utilities.DynamicComparer <MARCAEntity> comparer = new Phydeaux.Utilities.DynamicComparer <MARCAEntity>(cbMarca.DisplayMember); MarcaColl.Sort(comparer.Comparer); cbMarca.DataSource = MarcaColl; cbMarca.SelectedIndex = 0; } catch (Exception ex) { MessageBox.Show("Erro técnico: " + ex.Message); } }