TESVSnip.Domain.Model.GroupRecord.DeleteRecord C# (CSharp) Method

DeleteRecord() public method

public DeleteRecord ( BaseRecord br ) : bool
br BaseRecord
return bool
        public override bool DeleteRecord(BaseRecord br)
        {
            var r = br as Rec;
            if (r == null)
            {
                return false;
            }

            bool ok = this.records.Remove(r);
            if (ok)
            {
                r.Parent = null;
            }

            FireRecordListUpdate(this, this);
            FireRecordDeleted(this, r);
            return ok;
        }