Events in C# Interface
-
Development Environment: C#/VS2005 I have an interface for doing a time consuming back end operation, the caller is a GUI program, I want to inform the caller that % of job completed in frequent intervals. (say for example 25%, 50% and 75% completed) . With event can we achieve this? That is event will be raised from the interface and caller will wait for the event? Any ideas or Sample code? Regards Sarma
-
Development Environment: C#/VS2005 I have an interface for doing a time consuming back end operation, the caller is a GUI program, I want to inform the caller that % of job completed in frequent intervals. (say for example 25%, 50% and 75% completed) . With event can we achieve this? That is event will be raised from the interface and caller will wait for the event? Any ideas or Sample code? Regards Sarma
-
Then how we achieve this?
-
Then how we achieve this?
-
As you say:
event will be raised from the interface and caller will wait for the event
But, from class of this interface, not from interface. Best regards, A_l_e_x_e_y_. -- modified at 0:57 Wednesday 10th May, 2006
Thanks Alexey, Shall I get any sample code on this?
-
Thanks Alexey, Shall I get any sample code on this?
Read this article: http://www.codeproject.com/useritems/DelegatesEvents.asp Best regards, A_l_e_x_e_y_.