internal void Attach(FilterPresenter presenter) { filterPresenter = presenter; if (filterPresenter != null) { filterPresenter.ReceiveFilterChanged(this); } OnAttachPresenter(presenter); }
/// <summary> /// Report attached listeners that filter changed. /// </summary> protected void RaiseFilterChanged() { if (filterPresenter != null) { filterPresenter.ReceiveFilterChanged(this); } foreach (var vm in attachedFilterControlVmodels) { vm.FilterChanged(this); } }