Пример #1
0
        private void RemoveThisItem()
        {
            _chapterSave.ConvoyRegion.Convoy.Remove(_item);
            Utils.WeaponNameUtil.RemoveWeaponNameIfUnused(_chapterSave, _item.WeaponNameID);
            ConvoyMain.GetFromHere(this).UpdateConvoyCount();

            this.Parent.Controls.Remove(this);
        }
Пример #2
0
        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);
            }
        }