Incident
1. Event data. (If there is no associated event data, use the Eventargs class for event data.) Name: Event name plus Eventargs example: public class lowchargeEventArgs: Eventargs {...} 2. Event commission. (If there is no associated event data, first step in the first step using Eventargs, use System.EventHandler as an event commission.) Name: Event name plus EventHandler example: public delegate Void LowchargeEventhandler (Object Sender, LowchargeEventArgs E); Note: Attached The second parameter is in the event data type from the first step. 3. Event member. With Event keyword definition, its type is the type of event commissioned in the second step. Example: public evenet lowcharge; 4. Publish an event notification method. Virtual (overloaded) method calling event delegate naming: Event name plus prefix ON example: protected virtual void onlowcharge (lowcharge! = Null) {lowcharge (this, e);}}