I wanna make subscribtion to the Close event with the method ClearControl. The signature is different, but I don't need arguments from event. Is it possible ?
public event EventHandler Close = delegate { };
public void ClearControl(){}
control1.Close += control2.ClearControl;
Method signature has to match with event signature.
if you don't want to use
Argumentsthat's just fine, very normal case.You can do this to call
ClearControlmethod whenCloseis being called.