public void PopCbo() { TipoEvento tipoEvento = new TipoEvento(); cboTipoEvento.ItemsSource = tipoEvento.ReadAll(); cboTipoEvento.DisplayMemberPath = "Descripcion"; cboTipoEvento.SelectedValuePath = "IdTipoEvento"; }
public void PopCbo() { TipoEvento tipoEvento = new TipoEvento(); TipoAmbientacion tipoAmbientacion = new TipoAmbientacion(); cboTipoEvento.ItemsSource = tipoEvento.ReadAll(); cboTipoEvento.DisplayMemberPath = "Descripcion"; cboTipoEvento.SelectedValuePath = "IdTipoEvento"; cboTipoEvento.SelectedIndex = 0; cboAmbientacion.ItemsSource = tipoAmbientacion.ReadAll(); cboAmbientacion.DisplayMemberPath = "Desc"; cboAmbientacion.SelectedValuePath = "Id"; cboAmbientacion.SelectedIndex = -1; cboLocal.ItemsSource = Enum.GetValues(typeof(Locales)); cboLocal.SelectedIndex = 0; }