I want to cancel an event from within that function scope.
Eg. I pressed button click event and on false validation, I want to cancel this event. Likewise i want to
private void SaveDataClicked(object sender, EventArgs args) { args.cancel = true; }