One of your comments indicates the reverse type of event handler. Are you more interested in the type of handler or the data returned from the event? If this is the last, then this may help. If not, then this solution will not be enough, but it can help you get closer to what you are looking for.
All you have to do is declare the event handlers as general event handlers both in the interface and in your implementation, and you can customize the return results.
The class of your class will look like this:
public class ClsPictures : myInterface {
Your interface will look like this:
public interface myInterface { event EventHandler<StartedEventArgs> Started; event EventHandler<UpdateStatusEventArgs> UpdateStatusText; }
Now that the event arguments return your types, you can hook them in any handler that you define.
For reference: https://msdn.microsoft.com/en-us/library/edzehd2t(v=vs.110).aspx
Reuben Soto Mar 10 '16 at 1:16 2016-03-10 01:16
source share