Exemplo n.º 1
0
 /// <summary>
 /// 触发新载具入库的事件处理函数
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="args"></param>
 private void OnVehicleEvent(object sender, VehicleEventArgs args)
 {
     this.VehicleEvent?.Invoke(sender, args);
     if (sender != null && args != null)
     {
         Console.WriteLine(args.Message);
     }
 }
Exemplo n.º 2
0
 public void NewVehicle(VehicleEventArgs args)
 {
     this.OnVehicleEvent(this, args);
 }