Example #1
0
File: Shop.cs Project: Art17/Kpi-2
        public Gun get_gun(string name)
        {
            WeaponBoughtEventArgs args = new WeaponBoughtEventArgs(name);

            onWeaponBought(args);
            return(new Gun());
        }
Example #2
0
File: Shop.cs Project: Art17/Kpi-2
 protected virtual void onWeaponBought(WeaponBoughtEventArgs args)
 {
     WeaponBought(this, args);
 }
Example #3
0
 private void Shop_WeaponBought(object s, WeaponBoughtEventArgs args)
 {
     Console.WriteLine(String.Format("Policeman with badge {0} received that {1} bought weapon", badge, args.Name));
 }