First, filter in my current context is a list of objects to be used in ComboBox type controls so that the user can choose from the options.
My scenery: Screen 1 - It has filters of companies, stocks, customers, forms of payment. Screen 2 - It has filters of companies and stocks. Screen 3 - It has filters for customers, cities, states.
My goal is to implement a design pattern that uses the same structure, eg FilterStream, and add the filters (companies, clients, stocks) depending on the screen that requested it.
These screens are from a windows forms project, the request will be made to a WCF Service, which will query in a database and return the structure with all filters to the client (windows forms).
Something around, WCF Service I "Screen 1" want the filters companies, stocks, customers and forms of payment, upon receiving the msg back, would make the respective binding for each control.
Can someone tell me a design pattern to solve this question?