void UserControlsBackgroundOutput(UserControlsBackgroundEventArgs e) { if (CLICKNAME == e.output) { return; } if (e.output == "test1") { } }
public void DoSomeThings() { // do some things if (UserControlsBackgroundOutput != null) { string str = "test1"; UserControlsBackgroundEventArgs arg = new UserControlsBackgroundEventArgs(str); UserControlsBackgroundOutput(arg); // you've done that with str, whitch makes me // you don't know what the event param is } }