public FilterItemViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterBase item) : base(root, parent) { if (item == null) throw new ArgumentNullException("item"); this.Filter = item; }
public FilterItemViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterBase item) : base(root, parent) { if (item == null) { throw new ArgumentNullException("item"); } this.Filter = item; }
public FilterClusterViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterCluster cluster) : base(root, parent) { if (cluster == null) { throw new ArgumentNullException("cluster"); } this.cluster = cluster; }
public static FilterObjectViewModel GenerateViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, IFilter item) { if (item == null) throw new ArgumentNullException("item"); var cluster = item as FilterCluster; if (cluster != null) return new FilterClusterViewModel(root, parent, cluster); else return new FilterItemViewModel(root, parent, item as FilterBase); }
public MuteConfigViewModel() { if (Setting.Instance.TimelineFilteringProperty.MuteFilterCluster.ConcatenateAnd || Setting.Instance.TimelineFilteringProperty.MuteFilterCluster.Negate) this._filterEditorViewModel = new FilterEditorViewModel( new[] { Setting.Instance.TimelineFilteringProperty.MuteFilterCluster }); else this._filterEditorViewModel = new FilterEditorViewModel( Setting.Instance.TimelineFilteringProperty.MuteFilterCluster.Filters.ToArray()); this._muteBlockedUsers = Setting.Instance.TimelineFilteringProperty.MuteBlockedUsers; }
public static FilterObjectViewModel GenerateViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, IFilter item) { if (item == null) { throw new ArgumentNullException("item"); } var cluster = item as FilterCluster; if (cluster != null) { return(new FilterClusterViewModel(root, parent, cluster)); } else { return(new FilterItemViewModel(root, parent, item as FilterBase)); } }
public TabEditorViewModel(TabProperty property) { this.property = property; this._filterEditorViewModel = new FilterEditorViewModel(property.TweetSources.ToArray()); }
public FilterObjectViewModel(FilterEditorViewModel root, FilterClusterViewModel parent) { this.Root = root; this.Parent = parent; }
public FilterAdderViewModel(FilterEditorViewModel root, FilterClusterViewModel parent) : base(root, parent) { }