private IFrame AddFrames() { if (currentFramecounter <= maxFrameCount) { frame = frame.Add(currentFramecounter); frames.Add(frame); currentFramecounter++; return(frame); } return(frame); }