Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/11 05:13:55 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBClient.cs

    r5073 r5269  
    397397      }
    398398    }
    399     public ItemCollection<Run> QueryRuns(string query) {
    400       try {
    401         ItemCollection<Run> runs = new ItemCollection<Run>();
    402         runs.AddRange(CallAdminService<Run[]>(s => s.QueryRuns(query)).OrderByDescending(x => x.FinishedDate));
    403         return runs;
    404       }
    405       catch (Exception ex) {
    406         ErrorHandling.ShowErrorDialog("Refresh runs failed.", ex);
    407         return null;
    408       }
    409     }
    410399    public bool AddRun(long algorithmId, long problemId, IAlgorithm algorithm) {
    411400      try {
     
    697686    #endregion
    698687
     688    #region Query Methods
     689    public IEnumerable<Filter> GetFilters() {
     690      try {
     691        return CallAdminService<Filter[]>(s => s.GetFilters());
     692      }
     693      catch (Exception ex) {
     694        ErrorHandling.ShowErrorDialog("Refresh filters.", ex);
     695        return null;
     696      }
     697
     698    }
     699    public ItemCollection<Run> QueryRuns(IEnumerable<Filter> filters) {
     700      try {
     701        ItemCollection<Run> runs = new ItemCollection<Run>();
     702        runs.AddRange(CallAdminService<Run[]>(s => s.QueryRuns(filters.ToArray())).OrderByDescending(x => x.FinishedDate));
     703        return runs;
     704      }
     705      catch (Exception ex) {
     706        ErrorHandling.ShowErrorDialog("Refresh runs failed.", ex);
     707        return null;
     708      }
     709    }
     710    #endregion
     711
    699712    #region Events
    700713    public event EventHandler Refreshing;
Note: See TracChangeset for help on using the changeset viewer.