J 
		
								
				
				
			
		jweizman
I have a static method doing a long operation and i would like to
notify the user about the progress.
However when i try to use and event i does not compile...
public class AWSTasks
{
public delegate void ComputeProgress(int percentage);
public static event ComputeProgress ReportDDProgress;
public static void compute(float a,float b)
{
for (int i=0,i++;i<1000)
{
//bla,bla
if (ReportDDProgress!=null)
ReportDDProgress(i);
}
}
}
Thanks
John
				
			notify the user about the progress.
However when i try to use and event i does not compile...
public class AWSTasks
{
public delegate void ComputeProgress(int percentage);
public static event ComputeProgress ReportDDProgress;
public static void compute(float a,float b)
{
for (int i=0,i++;i<1000)
{
//bla,bla
if (ReportDDProgress!=null)
ReportDDProgress(i);
}
}
}
Thanks
John
