private void CollapseChecpointsDetails(HistoryCheckpoint cPoint) { for (int i = 0; i < _listOfCheckpoints.Count; i++) { if (_listOfCheckpoints[i].Equals(cPoint)) { _listOfCheckpoints[i].IsVisible = true; } else { _listOfCheckpoints[i].IsVisible = false; } } OnPropertyChanged("ListOfCheckpoints"); }
private void onLoadData(bool b) { uid accountUid = new uid(); //accountUid.account_id = 466.ToString(CultureInfo.InvariantCulture); accountUid = StationRepository.GetUid(ChangeTracker.CurrentUser); settlementHistoryCollection = new ObservableCollection <SettlementHistory>(WsdlRepository.GetSettlementHistory(accountUid)); _Checkpoints = new ObservableCollection <SettlementHistory>(settlementHistoryCollection); OnPropertyChanged("Checkpoints"); _listOfCheckpoints.Clear(); foreach (var checkpoint in _Checkpoints) { var cPoint = new HistoryCheckpoint(checkpoint.startDate, checkpoint.endDate, (int)checkpoint.id, checkpoint.settlement_saldo); _listOfCheckpoints.Add(cPoint); } OnPropertyChanged("ListOfCheckpoints"); OnPropertyChanged("SelectedCheckpoint"); }