/// <summary> /// Carga los combobox. /// </summary> /// <param name="blnClub"></param> /// <history> /// [aalcocer] 24/May/2016 Created /// </history> private async void LoadCombos(bool blnClub) { cboSaveCourtesyTours.ItemsSource = EnumToListHelper.GetList <EnumSaveCourtesyTours>(); cboExternal.ItemsSource = EnumToListHelper.GetList <EnumExternalInvitation>(); if (blnClub) { cboClub.ItemsSource = await BRClubs.GetClubs(nStatus : 1); } LoadUserFilters(); }
/// <summary> /// Llena el combobox de Clubs /// </summary> /// <history> /// [emoguel] created 11/03/2016 /// </history> protected async void LoadClubs() { try { List <Club> lstClubs = await BRClubs.GetClubs(new Club()); cmbagcl.ItemsSource = lstClubs; } catch (Exception ex) { UIHelper.ShowMessage(ex); } }
/// <summary> /// Carga el grid de clubs /// </summary> /// <history> /// [emoguel] created 07/06/2016 /// </history> private async void LoadClubs() { try { List <Club> lstClubs = await BRClubs.GetClubs(null, 1); if (enumMode == EnumMode.Search) { lstClubs.Insert(0, new Club { clID = 0, clN = "ALL" }); } cmbClub.ItemsSource = lstClubs; skpStatus.Visibility = Visibility.Collapsed; } catch (Exception ex) { UIHelper.ShowMessage(ex); } }
/// <summary> /// Llena el grid de clubs /// </summary> /// <param name="club">Objeto a seleccionar</param> /// <history> /// [emoguel] created 02/05/2016 /// </history> private async void LoadClubs(Club club = null) { try { status.Visibility = Visibility.Visible; int nIndex = 0; List <Club> lstClubs = await BRClubs.GetClubs(_clubFilter, _nStatus); dtgClubs.ItemsSource = lstClubs; if (lstClubs.Count > 0 && club != null) { club = lstClubs.FirstOrDefault(cl => cl.clID == club.clID); nIndex = lstClubs.IndexOf(club); } GridHelper.SelectRow(dtgClubs, nIndex); StatusBarReg.Content = lstClubs.Count + " Clubs."; status.Visibility = Visibility.Collapsed; } catch (Exception ex) { UIHelper.ShowMessage(ex); } }