/// <summary> /// Llena el combobox de Concepts /// </summary> /// <history> /// [emoguel] created 28/05/2016 /// </history> private async void LoadScoreConcepts() { try { List <ScoreRuleConcept> lstScoreRuleConcepts = await BRScoreRulesConcepts.GetScoreRulesConcepts(1); cmbScoreRuleConcept.ItemsSource = lstScoreRuleConcepts; skpStatus.Visibility = Visibility.Collapsed; } catch (Exception ex) { UIHelper.ShowMessage(ex); } }
/// <summary> /// Llena el grid de score rules concepts /// </summary> /// <param name="scoreRuleConcept">Objeto a seleccionar</param> /// <history> /// [emoguel] created 23/04/2016 /// </history> private async void LoadScoreRulesConcepts(ScoreRuleConcept scoreRuleConcept = null) { try { status.Visibility = Visibility.Visible; int nIndex = 0; List <ScoreRuleConcept> lstScoreRulesConcepts = await BRScoreRulesConcepts.GetScoreRulesConcepts(_nStatus, _scoreRuleConceptFilter); dgrScoreRulesConcepts.ItemsSource = lstScoreRulesConcepts; if (lstScoreRulesConcepts.Count > 0 && scoreRuleConcept != null) { scoreRuleConcept = lstScoreRulesConcepts.Where(sp => sp.spID == scoreRuleConcept.spID).FirstOrDefault(); nIndex = lstScoreRulesConcepts.IndexOf(scoreRuleConcept); } GridHelper.SelectRow(dgrScoreRulesConcepts, nIndex); StatusBarReg.Content = lstScoreRulesConcepts.Count + " Score Rules Concepts."; status.Visibility = Visibility.Collapsed; } catch (Exception ex) { UIHelper.ShowMessage(ex); } }