public ChangeWeaponForm(ParentForm form)
 {
     InitializeComponent();
     _form    = form;
     _weapons = new List <Weapon>();
     foreach (var item in _form.Character.Bag.Items)
     {
         if (item is Weapon weapon)
         {
             _weapons.Add(weapon);
             WeaponsList.Items.Add(weapon);
         }
     }
 }
Esempio n. 2
0
 public ChangeArmorForm(ParentForm form)
 {
     InitializeComponent();
     _form   = form;
     _armors = new List <Armor>();
     foreach (var item in _form.Character.Bag.Items)
     {
         if (item is Armor armor)
         {
             _armors.Add(armor);
             ArmorsList.Items.Add(armor);
         }
     }
 }
Esempio n. 3
0
 public InventoryForm(ParentForm form)
 {
     InitializeComponent();
     _form = form;
 }