I want to create a property in a control that will act as a viewer that can connect to another non-visual control to show its current status. In this example, we can say that the viewer simply shows the status online or offline.
I want to be able to remove the non-visual control, let's call it Heater type IHeater in the form and then release HeaterMonitor . I want to go to the HeaterMonitor properties and for the custom Source property, see a list of all the IHeaters currently in the form.
Selecting an instance ( Heater1 ) in the Source property will subscribe HeaterMonitor1 to all state updates created using Heater1 .
Is there an existing template that I can use as a template?
If that matters, I can use .net 3.5 and above. I chose data-binding as a tag, but I'm not sure if this is correct because it is not a database issue. But it looks like the DataGridView is picking the DataSource property.
Edit # 1: Based on comments so far, I donโt think I have stressed enough what I am trying to get. I want the property editor to display the appropriate IHeater on the form. I have no problem creating a regular IHeater property that I can assign at runtime.
source share