예제 #1
0
 public FilterItemViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterBase item)
     : base(root, parent)
 {
     if (item == null)
         throw new ArgumentNullException("item");
     this.Filter = item;
 }
예제 #2
0
 public FilterItemViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterBase item)
     : base(root, parent)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     this.Filter = item;
 }
예제 #3
0
 public FilterClusterViewModel(FilterEditorViewModel root, FilterClusterViewModel parent, FilterCluster cluster)
     : base(root, parent)
 {
     if (cluster == null)
     {
         throw new ArgumentNullException("cluster");
     }
     this.cluster = cluster;
 }
예제 #4
0
 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);
 }
예제 #5
0
 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;
 }
예제 #6
0
        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));
            }
        }
예제 #7
0
 public TabEditorViewModel(TabProperty property)
 {
     this.property = property;
     this._filterEditorViewModel = new FilterEditorViewModel(property.TweetSources.ToArray());
 }
예제 #8
0
 public FilterObjectViewModel(FilterEditorViewModel root, FilterClusterViewModel parent)
 {
     this.Root   = root;
     this.Parent = parent;
 }
예제 #9
0
 public FilterAdderViewModel(FilterEditorViewModel root, FilterClusterViewModel parent)
     : base(root, parent)
 {
 }
예제 #10
0
 public FilterAdderViewModel(FilterEditorViewModel root, FilterClusterViewModel parent)
     : base(root, parent)
 {
 }
예제 #11
0
 public FilterObjectViewModel(FilterEditorViewModel root, FilterClusterViewModel parent)
 {
     this.Root = root;
     this.Parent = parent;
 }