I use a lot of custom events in my code, and have been declaring them like this
public delegate void ImageDownloadingEvent(Waypoint waypoint);
public event ImageDownloadingEvent ImageDownloading;
then firing them like this
if (ImageDownloading != null)
ImageDownloading(waypoint);
What I'd like to know is, is this bad practice? Or a bad way of doing things? If so, why? And what would be a better approach?
Thanks for any help, just trying to improve my coding skills