private void pbAdd_Click(object sender, EventArgs e)
 {
     var postFilterVM = new PostFilterItemViewModel();
     var postFilterItem = new PostFilterItemView { ViewModel = postFilterVM };
     ViewModel.AddFilterItems(postFilterVM);
     postFilterPanel.Controls.Add(postFilterItem);
     subscribeToControlEvents(postFilterItem);
 }
 public void RemoveFilterItems(PostFilterItemViewModel itemViewModel)
 {
     postFilterItemViewModelList.Remove(itemViewModel);
 }
 // view model maintains a list of the item view models to process filters operations
 public void AddFilterItems(PostFilterItemViewModel itemViewModel)
 {
     postFilterItemViewModelList.Add(itemViewModel);
 }