private SetList CreateSetList( bool addSets = true, bool addActs = true, bool isChildList = true) { AddData(addSets, addActs); var result = new SetList(isChildList) { Session = Session }; if (isChildList) { ParentList = (result.CreateParentList() as EventList) !; ParentList.ChildListType = result.GetType(); result.ParentList = ParentList; } else { result.ChildListType = typeof(PieceList); } return(result); }