예제 #1
0
        private void OnGroupRemoved(FilterGroupViewModel group)
        {
            _filterGroups.Remove(group);

            group.Removed         -= OnGroupRemoved;
            group.PropertyChanged -= GroupOnPropertyChanged;

            UpdateFilterExpression();
        }
예제 #2
0
        private void AddGroup()
        {
            var group = new FilterGroupViewModel();

            _filterGroups.Add(group);
            group.Removed         += OnGroupRemoved;
            group.PropertyChanged += GroupOnPropertyChanged;

            UpdateFilterExpression();
        }