示例#1
0
        protected void OnMilitaryVehicleChanged(MilitaryVehicle vehicleUpdated, bool killed)
        {
            EventHandler <MilitaryVehicleChangedEventArgs> vehicleChanged = MilitaryVehicleChanged;

            if (vehicleChanged != null)
            {
                vehicleChanged(this, new MilitaryVehicleChangedEventArgs(vehicleUpdated, killed));
            }
        }
示例#2
0
 public MilitaryVehicleChangedEventArgs(MilitaryVehicle militaryVehicleUpdated, bool killed)
 {
     MilitaryVehcileUpdated = militaryVehicleUpdated;
     Killed = killed;
 }