public class StringEventArgs : EventArgs //要继承EventArgs
{
public StringEventArgs(string aStrValue)
{
StrValue = aStrValue;
}
public string StrValue { get; set; }
}
public virtual event EventHandler<StringEventArgs> OnEditValueChanged;
string a=1;
OnEditValueChanged(aSender, new StringEventArgs(a));