Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/27/11 16:58:15 (13 years ago)
Author:
dhohl
Message:

#1499
Remove unused code in the filter classes

File:
1 edited

Legend:

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

    r6303 r6305  
    1717    public class FilterModel
    1818    {
    19 
    20 
    21 
    2219        public static string ComboboxName { get { return "filtersCombobox"; } }
    2320        public static string ParentIdName { get { return "parentId"; } }
     
    3532        public FilterModel()
    3633        {
    37 
    3834        }
    3935
     
    5147            {
    5248                List<Boolean> boolStates = new List<Boolean>();
    53 
    5449                boolStates = new List<Boolean>();
    5550                boolStates.Add(true);
    5651                boolStates.Add(false);
    57 
    5852                return boolStates;
    5953            }
    6054        }
    61 
    62 
     55       
    6356        public static List<ComparisonItem> BoolComparisons
    6457        {
     
    7568            get { return ComparisonsHelper.stringComparisons; }
    7669        }
    77 
    78 
    79 
     70       
    8071
    8172        /// <summary>
     
    118109        /// </summary>
    119110        public CombinedFilter Content { get; set; }
    120 
    121 
     111       
    122112
    123113        /// <summary>
     
    154144        internal void AddFilter(string filterTypeName, Guid parentId)
    155145        {
    156 
    157146            // get selected filter (combobox)
    158147            Filter filter = AvailableFilters.Where(x => x.FilterTypeName.Equals(filterTypeName)).FirstOrDefault();
    159 
    160148
    161149            // find the partent filterr
     
    167155
    168156            List<Filter> filterList = parentFilter.Filters.ToList<Filter>();
    169 
    170 
     157           
    171158            // Add the new filter
    172159            filterList.Add(filter);
     
    181168        }
    182169
     170
    183171        /// <summary>
    184172        /// Update existing filters with posted value
     
    193181                foreach (Filter f in cf.Filters)
    194182                {
    195 
    196183                    Dictionary<string, string> dict = postValues.Where(x => x.Key.Equals(f.Id)).FirstOrDefault().Value;
    197184                    if (dict != null)
    198185                    {
    199 
    200186                        foreach (KeyValuePair<string, string> kvp in dict)
    201187                        {
     
    350336                                }
    351337                            }
    352 
    353 
    354338                            else
    355339                            {
    356340                                // To this for all filters
    357341                            }
    358 
    359 
    360342                        }
    361 
    362 
    363343                    }
    364344                }
Note: See TracChangeset for help on using the changeset viewer.