예제 #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_Imgs value = (HistoryValue_Imgs)valueT;

            container.form_MA.form_MImgsList.mImgsManager = value.imgsManager;
            value.setDataToImg(container.form_MA.form_MImgsList.mImgsManager);
            container.form_MA.form_MImgsList.releaseFocus();
            container.form_MA.form_MImgsList.updateAllList(value.imgListIndex);
            container.form_MA.form_MImgsList.mImgsManager.reloadImageElements();
            container.form_MA.refreshActionUIs();
        }
예제 #3
0
        //获取记录值_图片
        private HistoryValue_Imgs getHistoryValue_Imgs()
        {
            HistoryValue_Imgs HV_Imgs = new HistoryValue_Imgs();
            MImgsManager      manager = form_MA.form_MImgsList.mImgsManager;

            HV_Imgs.imgsManager = manager.CloneReference();
            for (int i = 0; i < manager.Count(); i++)
            {
                MImgElement img = manager[i];
                HV_Imgs.imgsData.Add(img.getMImgData());
            }
            HV_Imgs.imgListIndex = form_MA.form_MImgsList.listBox_Images.SelectedIndex;
            return(HV_Imgs);
        }
예제 #4
0
 //获取记录值_图片
 private HistoryValue_Imgs getHistoryValue_Imgs()
 {
     HistoryValue_Imgs HV_Imgs = new HistoryValue_Imgs();
     MImgsManager manager = form_MA.form_MImgsList.mImgsManager;
     HV_Imgs.imgsManager = manager.CloneReference();
     for (int i = 0; i < manager.Count(); i++)
     {
         MImgElement img = manager[i];
         HV_Imgs.imgsData.Add(img.getMImgData());
     }
     HV_Imgs.imgListIndex = form_MA.form_MImgsList.listBox_Images.SelectedIndex;
     return HV_Imgs;
 }
예제 #5
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();
         }
     }
 }