예제 #1
0
        /// <summary>
        /// Returns a clone copy of the given frame
        /// </summary>
        /// <returns>A clone copy of the given frame</returns>
        public Frame CloneFrame(IFrame frame)
        {
            var newFrame = frame.Clone();

            newFrame.ID = GetNextUniqueFrameId();

            return(newFrame);
        }
 /// <summary>
 /// Saves board state.
 /// </summary>
 /// <param name="board">Board of type IFrame.</param>
 public void SaveBoardState(IFrame board)
 {
     this.boardStates.Insert(++this.currentIndex, board.Clone());
 }