Ejemplo n.º 1
0
 public TextFilterViewModel(ILogger Logger, string PropertyName, TextFilterViewModel Model) : base(Logger, PropertyName)
 {
     ItemsSource = new ObservableCollection <TextFilterItem>();
     if (Model != null)
     {
         foreach (TextFilterItem item in Model.ItemsSource)
         {
             ItemsSource.Add(new TextFilterItem()
             {
                 Condition = item.Condition, Value = item.Value
             });
         }
     }
     else
     {
         ItemsSource.Add(new TextFilterItem()
         {
             Condition = TextConditions.Contains
         });
     }
 }
Ejemplo n.º 2
0
 public InlineFilterViewModel(ILogger Logger, string PropertyName, TextFilterViewModel Model) : base(Logger, PropertyName, Model)
 {
 }