- Timestamp:
- 05/07/11 10:41:02 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebApplication/MVC2/HLWebOKBQueryPlugin/ViewModels/FilterModel.cs
r6097 r6141 4 4 using System.Web; 5 5 using HLWebOKBQueryPlugin.OKBQueryService; 6 using HLWebOKBQueryPlugin.Helpers; 6 7 7 8 namespace HLWebOKBQueryPlugin.Models … … 14 15 public class FilterModel 15 16 { 16 public List<Filter> Filters { get; set; } 17 public List<Filter> SelectedFilters { get; set; } 17 18 private List<Filter> _filters; 19 20 //public KeyValuePair<int,Filter> ParentFilter { get; set; } 21 public List<Filter> Filters 22 { 23 24 get 25 { 26 QueryServiceClient client = Query.GetClientFactory("okbtester", "okbtester"); 27 return client.GetFilters().ToList<Filter>(); /// => won't work 28 } 29 30 31 } 32 //public Dictionary<int,Filter> SelectedFilters { get; set; } 33 // use an unique id for reach filter "Control" 34 public CombinedFilter Content { get; set; } 35 36 37 public FilterModel() 38 { 39 40 } 41 42 public FilterModel(CombinedFilter filter) 43 { 44 Content = filter; 45 //filter.i 46 } 47 18 48 } 19 49 }
Note: See TracChangeset
for help on using the changeset viewer.