Wednesday, October 2, 2013

How to I call an event from a plugin through an interface?

Hi Strangle,


i think the answer is already in your question. :-)


An interface can also define an event: http://msdn.microsoft.com/en-us/library/ak9w5846.aspx


So you could define an Event in your interface that you implement in your class and raise in the Start-Method. Then your Main-Form can attach to that event.




Thomas Claudius Huber



"If you can´t make your app run faster, make it at least look & feel extremly fast"



twitter: @thomasclaudiush

homepage: www.thomasclaudiushuber.com

author of: ultimate Windows Store Apps handbook | ultimate WPF handbook | ultimate Silverlight handbook


No comments:

Post a Comment