delegates and events in c# real time example