danabnormal
New member
- Joined
- Dec 1, 2009
- Messages
- 2
- Programming Experience
- 3-5
Hey all.
I'm developing a VB.Net desktop app and its made sense to go down the route of having functionality being provided by individual plugins. So I've created a test app to get used to how you implement this using Interfaces and all is going swimmingly, however theres a questions I have.
I've noticed that when setting up a property not all types are available. Why is that? So for example, if I want my plugin interfaces to provide a Name property:
is the command I'd use in the Interface. However what I thought would be neat for future use is to have an Icon property that delivers an image to the host app - something like:
but this isn't possible. Does anyone know why this is disallowed? How would you provide this kind of functionality through an Interface?
Finally, there is one property I would like to implement in the Interface that mentions which type of plugin it is: Input, Output or Share. Is there a way that I can define a custom DataType that will only accept a certain list of values? (ie
)
Hope that all makes sense!
Dan
I'm developing a VB.Net desktop app and its made sense to go down the route of having functionality being provided by individual plugins. So I've created a test app to get used to how you implement this using Interfaces and all is going swimmingly, however theres a questions I have.
I've noticed that when setting up a property not all types are available. Why is that? So for example, if I want my plugin interfaces to provide a Name property:
VB.NET:
ReadOnly Property Name() As String
is the command I'd use in the Interface. However what I thought would be neat for future use is to have an Icon property that delivers an image to the host app - something like:
VB.NET:
ReadOnly Property Icon() As Bitmap
but this isn't possible. Does anyone know why this is disallowed? How would you provide this kind of functionality through an Interface?
Finally, there is one property I would like to implement in the Interface that mentions which type of plugin it is: Input, Output or Share. Is there a way that I can define a custom DataType that will only accept a certain list of values? (ie
VB.NET:
Dim myType As MyInputType
Hope that all makes sense!
Dan