private void ShowPredefinedRangesView(object obj) { PreDefinedRangesRequest.Raise(new PreDefinedRangesNotifcation() { Title = "Pre-Defined Ranges" }, returned => { if (returned != null && returned.ItemsList != null) { Reset(null); foreach (var s in returned.ItemsList) { var current = PreflopSelectorItems.FirstOrDefault(x => x.Caption.Equals(s)); if (current != null && current.IsEnabled) { current.IsSelected = true; current.HandUpdateAndRefresh(); } } UpdateSlider(); } }); }
private void ShowPredefinedRangesView(object obj) { PreDefinedRangesRequest.Raise(new PreDefinedRangesNotifcation() { Title = "Pre-Defined Ranges" }, returned => { if (returned != null && returned.ItemsList != null) { SelectNone(null); foreach (var s in returned.ItemsList) { var current = FilterModel.HoleCardsCollection.FirstOrDefault(x => x.Name.Equals(s)); if (current != null) { current.IsChecked = true; } } UpdateSlider(); } }); }