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); } } }
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); } } }
public InventoryForm(ParentForm form) { InitializeComponent(); _form = form; }