protected void OnMilitaryVehicleChanged(MilitaryVehicle vehicleUpdated, bool killed) { EventHandler <MilitaryVehicleChangedEventArgs> vehicleChanged = MilitaryVehicleChanged; if (vehicleChanged != null) { vehicleChanged(this, new MilitaryVehicleChangedEventArgs(vehicleUpdated, killed)); } }
public MilitaryVehicleChangedEventArgs(MilitaryVehicle militaryVehicleUpdated, bool killed) { MilitaryVehcileUpdated = militaryVehicleUpdated; Killed = killed; }