//從分鏡腳本內刪除分鏡
        public void RemoveStoryBoardFromScriptData(StoryBoard storyboard)
        {
            int index = this._storyBoardScriptData.IndexOf(this._storyBoardScriptData.FirstOrDefault(x => x.Guid == storyboard.Guid));

            this._storyBoardScriptData.Remove(storyboard);
            this.Project.RemoveStoryBoardFromScriptJson(index);
        }
        /// <summary>
        /// 更新StoryBoard
        /// </summary>
        /// <param name="updatedStoryBoard"></param>
        public void UpdateStoryBoard(StoryBoard updatedStoryBoard)
        {
            var storyBoard = this._storyBoardScriptData.FirstOrDefault(x => x.Guid == updatedStoryBoard.Guid);
            int index      = this._storyBoardScriptData.IndexOf(storyBoard);

            this._storyBoardScriptData[index] = updatedStoryBoard;
            this.Project.UpdateStoryBoard(index, updatedStoryBoard);
        }
        /// <summary>
        /// 將新增的StoryBoard寫入JsonArray
        /// </summary>
        /// <param name="index"></param>
        /// <param name="storyBoard"></param>
        public void InsertStoryBoardIntoScriptJson(int index, StoryBoard storyBoard)
        {
            JsonObject jsonObject = new JsonObject();

            jsonObject.Add("Guid", JsonValue.CreateStringValue(storyBoard.Guid.ToString()));
            jsonObject.Add("MediaSourceGuid", JsonValue.CreateStringValue(storyBoard.MediaSource.Guid.ToString()));
            jsonObject.Add("Effects", new JsonArray());
            this._scriptJson.Insert(index, jsonObject);
        }
        public void UpdateStoryBoard(int index, StoryBoard updatedStoryBoard)
        {
            //TODO: 分鏡存入專案檔未寫
            JsonObject jsonObject = new JsonObject();

            jsonObject.Add("Guid", JsonValue.CreateStringValue(updatedStoryBoard.Guid.ToString()));
            jsonObject.Add("MediaSourceGuid", JsonValue.CreateStringValue(updatedStoryBoard.MediaSource.Guid.ToString()));
            jsonObject.Add("Effects", this.ConvertEffectIntoJson(updatedStoryBoard.GetAllEffects()));

            this._scriptJson.RemoveAt(index);
            this._scriptJson.Insert(index, jsonObject);
        }
 //新增分鏡至分鏡腳本
 public void AddStoryBoardIntoScriptData(StoryBoard storyboard)
 {
     this._storyBoardScriptData.Add(storyboard);
 }
 //插入分鏡至分鏡腳本
 public void InsertStoryBoardIntoScriptData(int index, StoryBoard storyboard)
 {
     this._storyBoardScriptData.Insert(index, storyboard);
     this.Project.InsertStoryBoardIntoScriptJson(index, storyboard);
 }