private HistoryValue_ImgProp preValue_ImgProp = null; //图片属性 //准备历史记录 public void ReadyHistory(HistoryType type) { if (type == HistoryType.Action) { if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null) { preValue_Action = getHistoryValue_Action(); } } if (type == HistoryType.Actor) { if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null) { preValue_Actor = getHistoryValue_Actor(); } } if (type == HistoryType.Clips) { if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null) { preValue_Clips = getHistoryValue_Clips(); } } if (type == HistoryType.Imgs) { if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null) { preValue_Imgs = getHistoryValue_Imgs(); } } }
//获取记录值_动作 private HistoryValue_Action getHistoryValue_Action() { HistoryValue_Action HV_Action = new HistoryValue_Action(); HV_Action.timeLineHoder = form_MA.form_MTimeLine.currentTimeLineHoder.Clone(); HV_Action.timeLinePos = Form_MTimeLine.timePosition; HV_Action.actorFolderID = form_MA.form_MActorList.currentActorFolder.GetID(); HV_Action.actorID = form_MA.form_MActorList.currentActorElement.GetID(); HV_Action.actionID = form_MA.form_MActorList.currentActionElement.GetID(); return(HV_Action); }
protected override void updateTo(HistoryValue valueT) { HistoryValue_Action value = (HistoryValue_Action)valueT; MActorsManager MAM = container.form_MA.form_MActorList.actorsManager; //这里会引起错误 MAM[value.actorFolderID][value.actorID][value.actionID] = (MAction)value.timeLineHoder; container.form_MA.form_MActorList.setCurrentActorFolder(value.actorFolderID, false, 0); container.form_MA.form_MActorList.setCurrentActor(value.actorID, false, 1); container.form_MA.form_MActorList.setCurrentAction(value.actionID, false, 2); container.form_MA.form_MTimeLine.setTimeLinePos(value.timeLinePos); container.form_MA.refreshActionUIs(); }
//清除历史记录 public override void ClearHistory() { base.ClearHistory(); preValue_Action = null; form_MA.refreshHistoryButtons(); }
//获取记录值_动作 private HistoryValue_Action getHistoryValue_Action() { HistoryValue_Action HV_Action = new HistoryValue_Action(); HV_Action.timeLineHoder = form_MA.form_MTimeLine.currentTimeLineHoder.Clone(); HV_Action.timeLinePos = Form_MTimeLine.timePosition; HV_Action.actorFolderID = form_MA.form_MActorList.currentActorFolder.GetID(); HV_Action.actorID = form_MA.form_MActorList.currentActorElement.GetID(); HV_Action.actionID = form_MA.form_MActorList.currentActionElement.GetID(); return HV_Action; }
private HistoryValue_ImgProp preValue_ImgProp= null; //图片属性 //准备历史记录 public void ReadyHistory(HistoryType type) { if (type == HistoryType.Action) { if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null) { preValue_Action = getHistoryValue_Action(); } } if (type == HistoryType.Actor) { if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null) { preValue_Actor = getHistoryValue_Actor(); } } if (type == HistoryType.Clips) { if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null) { preValue_Clips = getHistoryValue_Clips(); } } if (type == HistoryType.Imgs) { if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null) { preValue_Imgs = getHistoryValue_Imgs(); } } }