Using events in your code is basically of the new way of developing applications for Microsoft Dynamics NAV/Dynamics 365 Business Central and is referred to as extensions.
An extension is defined as "an installable feature of Microsoft Dynamics NAV functionality built in a way that does not directly alter source resources and is distributed as a preconfigured package".
The new extension model allows you to create a solution for Microsoft Dynamics NAV or Microsoft Dynamics 365 Business Central that is deployed as a package (.app file).
This package is developed using the new AL language by extending standard objects and using events for creating custom business logic or modifying the existing standard behavior. ...