Free cookie consent management tool by TermsFeed Policy Generator

Changeset 13709 for trunk


Ignore:
Timestamp:
03/16/16 09:54:54 (9 years ago)
Author:
abeham
Message:

#2588: fixed updating of solutions (events)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBProblem.cs

    r13693 r13709  
    171171
    172172    public void RefreshSolutions() {
    173       Solutions.Clear();
    174173      if (ProblemId != -1) {
    175         Solutions.AddRange(RunCreationClient.Instance.GetSolutions(ProblemId).Select(OKBSolution.Convert));
    176         foreach (var sol in Solutions) {
    177           sol.DownloadData();
    178         }
    179       }
     174        var sols = RunCreationClient.Instance.GetSolutions(ProblemId).Select(OKBSolution.Convert).ToList();
     175        foreach (var sol in sols) sol.DownloadData();
     176        Solutions.Replace(sols);
     177      } else Solutions.Clear();
    180178    }
    181179
Note: See TracChangeset for help on using the changeset viewer.