rfazendeiro
Centurion
- Joined
- Mar 8, 2004
- Messages
- 110
hi to all,
I have a dll that i use to execute a dts through a c# application. The dll has 2 classes in it. One to execute the dts and the other to "catch" / treat the events that the dts fires.
While the dts is executing it fires an event (among others) that indicates the progress of the execution. The event is something like this
[csharp]
public void OnProgress(string EventSource, string ProgressDescription, int PercentComplete, int ProgressCountLow, int ProgressCountHigh)
{
//code here
}
[/csharp]
Now in the other class in the same dll i have a method called ExecutePackage that executes the dts.
im my form all i do is create a instance o the class that has this method and execute it
[csharp]
DTS execute = new DTS();
execute.ExecutePackage();
[/csharp]
very well. Now comes the question. How can my main app know that the OnProgress events was fired so i can increment the progressbar?
NOTE: The event OnProgress is working because i can create in the Eventlog (System.Diagnostics.EventLog) a event telling me the progress
I have a dll that i use to execute a dts through a c# application. The dll has 2 classes in it. One to execute the dts and the other to "catch" / treat the events that the dts fires.
While the dts is executing it fires an event (among others) that indicates the progress of the execution. The event is something like this
[csharp]
public void OnProgress(string EventSource, string ProgressDescription, int PercentComplete, int ProgressCountLow, int ProgressCountHigh)
{
//code here
}
[/csharp]
Now in the other class in the same dll i have a method called ExecutePackage that executes the dts.
im my form all i do is create a instance o the class that has this method and execute it
[csharp]
DTS execute = new DTS();
execute.ExecutePackage();
[/csharp]
very well. Now comes the question. How can my main app know that the OnProgress events was fired so i can increment the progressbar?
NOTE: The event OnProgress is working because i can create in the Eventlog (System.Diagnostics.EventLog) a event telling me the progress