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
-
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
public delegate void OnMyEvent(FiresMyEvent sender);
public class FiresMyEvent : System.Windows.Forms.Control
{
public event OnMyEvent MyEvent;protected override void OnClick( EventArgs e) { if( null != MyEvent) MyEvent( this); }
}
and yes "Stop flooding"
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
-
Why do people always assume the worst, namely that this guys is flooding on purpose? He probably sent it, saw that his message was not shown and then sent it again - without realizing that maybe his proxy was the culprit. Is it really that hard to stay polite and friendly? Why don't you simply write "You accidentally posted this twice." instead of " _STOP_ _FLOODING_ !!!1!!1 one exclamation-mark eleven !". You are gonna have a heart-attack before thirty, mark my words. Oh, and a few things to consider: a) That any reply will never stop anyone who has his mind set to flood a BBS. b) Being unfriendly might actually hurt someones feelings. c) If he was a troll, you would have given him reason to continue by getting emotional. SEB -- Contra vim mortem non est medicamen in hortem. -- modified at 1:49 Wednesday 10th May, 2006
-
Why do people always assume the worst, namely that this guys is flooding on purpose? He probably sent it, saw that his message was not shown and then sent it again - without realizing that maybe his proxy was the culprit. Is it really that hard to stay polite and friendly? Why don't you simply write "You accidentally posted this twice." instead of " _STOP_ _FLOODING_ !!!1!!1 one exclamation-mark eleven !". You are gonna have a heart-attack before thirty, mark my words. Oh, and a few things to consider: a) That any reply will never stop anyone who has his mind set to flood a BBS. b) Being unfriendly might actually hurt someones feelings. c) If he was a troll, you would have given him reason to continue by getting emotional. SEB -- Contra vim mortem non est medicamen in hortem. -- modified at 1:49 Wednesday 10th May, 2006
Sebastian Schneider wrote:
Why don't you simply write "You accidentally posted this twice."
More than twice, and same problem with different header. I call this "flooding", how about you ? And, finally - he can delete thess messages after "multi-posting", but he don't do that. Anyway, respect to you. I agree with your "polite" opinion. Best regards, A_l_e_x_e_y_.