【发布时间】:2010-10-24 21:22:19
【问题描述】:
我有课
//Create GroupFieldArgs as an EventArgs
public class GroupFieldArgs : EventArgs
{
private string groupName = string.Empty;
private int aggregateValue = 0;
//Get the fieldName
public string GroupName
{
set { groupName = value; }
get { return groupName; }
}
//Get the aggregate value
public int AggregateValue
{
set { aggregateValue = value; }
get { return aggregateValue; }
}
}
我有另一个创建事件处理程序的类
public class Groupby
{
public event EventHandler eh;
}
最后,我的表单上有 Timer,它有 Timer_TICK 事件。 我想在 Timer_TICK 事件中传递 GroupFieldArgs。 最好的方法是什么?
【问题讨论】: