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));
时间: 2024-12-28 20:56:59