Exemple #1
0
        public FilterLayerViewModel(Layer layer, IList <string> icons)
        {
            SelectIcon = new SelectIconLayerViewModel(layer, icons);
            Visibility = new VisibilityLayerViewModel(layer);
            Filters    = new List <IFilterViewModel>();
            if (layer != null)
            {
                foreach (var column in layer.Columns)
                {
                    if (column.HasChart)
                    {
                        Filters.Add(new UniqueListFilterViewModel(column));
                    }
                    else if (column.DataType != UserDataType.STRING)
                    {
                        Filters.Add(new RangeFilterViewModel(column));
                    }
                }

                Filters.Add(new DistanceFilterViewModel(layer));
            }
        }
Exemple #2
0
 public FilterLayerViewModel(IList <string> icons)
 {
     SelectIcon = new SelectIconLayerViewModel(icons);
     Visibility = new VisibilityLayerViewModel();
     Filters    = new List <IFilterViewModel>();
 }
Exemple #3
0
 public FilterLayerViewModel()
 {
     SelectIcon = new SelectIconLayerViewModel();
     Visibility = new VisibilityLayerViewModel();
     Filters    = new List <IFilterViewModel>();
 }