private void RemoveThisItem() { _chapterSave.ConvoyRegion.Convoy.Remove(_item); Utils.WeaponNameUtil.RemoveWeaponNameIfUnused(_chapterSave, _item.WeaponNameID); ConvoyMain.GetFromHere(this).UpdateConvoyCount(); this.Parent.Controls.Remove(this); }
private void CombineChargesAfterEdit(object sender, EventArgs e) { var sameItem = _chapterSave.ConvoyRegion.Convoy .Where((x) => x != _item && x.ItemID == _item.ItemID && x.Uses == _item.Uses && x.WeaponNameID == _item.WeaponNameID && x.IsNamed == _item.IsNamed) .FirstOrDefault(); if (sameItem != null) { ConvoyMain.GetFromHere(this).CombineItems(_item, sameItem); } }