示例#1
0
 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();
         }
     }
 }
示例#2
0
        protected override void updateTo(HistoryValue valueT)
        {
            HistoryValue_Clips value = (HistoryValue_Clips)valueT;

            container.form_MA.form_MImgsList.MClipsManager = value.clipsManager;
            value.setDataToClip();
            container.form_MA.form_MImgsList.releaseFocus();
            container.form_MA.form_MImgsList.updateAllList(value.imgListIndex);
            container.form_MA.refreshActionUIs();
        }
示例#3
0
        //获取记录值_切片
        private HistoryValue_Clips getHistoryValue_Clips()
        {
            HistoryValue_Clips HV_Clips = new HistoryValue_Clips();
            MClipsManager      manager  = form_MA.form_MImgsList.MClipsManager;

            HV_Clips.clipsManager = manager;
            for (int i = 0; i < manager.Count(); i++)
            {
                MClipElement clip = manager[i];
                HV_Clips.clipsData.Add(clip.getMClipData());
            }
            HV_Clips.imgListIndex = form_MA.form_MImgsList.listBox_Images.SelectedIndex;
            return(HV_Clips);
        }
 //获取记录值_切片
 private HistoryValue_Clips getHistoryValue_Clips()
 {
     HistoryValue_Clips HV_Clips = new HistoryValue_Clips();
     MClipsManager  manager= form_MA.form_MImgsList.MClipsManager;
     HV_Clips.clipsManager = manager;
     for (int i=0;i<manager.Count();i++)
     {
         MClipElement clip = manager[i];
         HV_Clips.clipsData.Add(clip.getMClipData());
     }
     HV_Clips.imgListIndex = form_MA.form_MImgsList.listBox_Images.SelectedIndex;
     return HV_Clips;
 }
 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();
         }
     }
 }