public void listarCombo() { if (model.carregarComboCargo().Rows.Count > 0) { cbCargo.DataSource = model.carregarComboCargo(); cbCargo.ValueMember = "id"; cbCargo.DisplayMember = "cargo"; } else { cbCargo.Text = "Cadastre um cargo"; } }
public void listarCombo() { if (model.carregarComboCargo().Rows.Count > 0) { cbCargo.DataSource = model.carregarComboCargo(); cbCargo.ValueMember = "id"; cbCargo.DisplayMember = "cargo"; } else { cbCargo.Text = "Cadastre um cargo"; } }