public Gun get_gun(string name) { WeaponBoughtEventArgs args = new WeaponBoughtEventArgs(name); onWeaponBought(args); return(new Gun()); }
protected virtual void onWeaponBought(WeaponBoughtEventArgs args) { WeaponBought(this, args); }
private void Shop_WeaponBought(object s, WeaponBoughtEventArgs args) { Console.WriteLine(String.Format("Policeman with badge {0} received that {1} bought weapon", badge, args.Name)); }