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-10-25 00:34:12