public class History
{
public delegate void UpdateHandler(int value);
public event UpdateHandler eventUpdate;
public void Method()
{
eventUpdate?.Invoke(param);
}
}
public class Target
{
public void TargetMethod(){
History hi=new History();
hi.eventUpdate+=aletr;
}
private void aletr(int v)
{
MessageBox.Show("haa");
}
}