Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/07/11 10:41:02 (14 years ago)
Author:
mjesner
Message:

#1499 new (non-recursive) view/architecture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebApplication/MVC2/HLWebOKBQueryPlugin/ViewModels/FilterModel.cs

    r6097 r6141  
    44using System.Web;
    55using HLWebOKBQueryPlugin.OKBQueryService;
     6using HLWebOKBQueryPlugin.Helpers;
    67
    78namespace HLWebOKBQueryPlugin.Models
     
    1415    public class FilterModel
    1516    {
    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
    1848    }
    1949}
Note: See TracChangeset for help on using the changeset viewer.