c#委托使用
public class StepArgs : EventArgs
{
public int m_IMax = 0;
public int m_IStep = 0;
public string m_StrInfo = "";
public StepArgs(int max,int step,string info)
{
m_IMax = max;
m_IStep = step;
m_StrInfo = info;
}
}
public delegate void StepDelegate(StepArgs args);
/*
//类中使用方法
public event StepDelegate StepEvent;
StepArgs args = new StepArgs(iCnt, i+1, "");
if (StepEvent != null)
{
StepEvent(args);
}
*
*/

浙公网安备 33010602011771号