Changeset 5269 for branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBClient.cs
- Timestamp:
- 01/11/11 05:13:55 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/OKBClient.cs
r5073 r5269 397 397 } 398 398 } 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 }410 399 public bool AddRun(long algorithmId, long problemId, IAlgorithm algorithm) { 411 400 try { … … 697 686 #endregion 698 687 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 699 712 #region Events 700 713 public event EventHandler Refreshing;
Note: See TracChangeset
for help on using the changeset viewer.