public override void AddRecord(BaseRecord br)
{
try
{
//var r = br as Rec;
var r = br as Rec;
if (r == null)
{
throw new TESParserException("Record to add was not of the correct type." + Environment.NewLine + "Groups can only hold records or other groups.");
}
r.Parent = this;
this.records.Add(r);
FireRecordListUpdate(this, this);
}
catch (Exception ex)
{
throw new TESParserException("GroupRecord.AddRecord: " + ex.Message);
}
}