I have class
//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; }
}
}
I have another class that creates a event handler
public class Groupby
{
public event EventHandler eh;
}
Finally I have Timer on my form that has Timer_TICK event. I want to pass GroupFieldArgs in Timer_TICK event. What is the best way to do it?