Exemplo n.º 1
0
 //增加历史记录
 public void AddHistory(HistoryType type)
 {
     if (type == HistoryType.Action)
     {
         if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null && preValue_Action != null)
         {
             HistoryItem_Action item = new HistoryItem_Action(this);
             item.setValue(preValue_Action, getHistoryValue_Action());
             AddItem(item);
         }
     }
     if (type == HistoryType.Actor)
     {
         if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null && preValue_Actor != null)
         {
             HistoryItem_Actor item = new HistoryItem_Actor(this);
             item.setValue(preValue_Actor, getHistoryValue_Actor());
             AddItem(item);
         }
     }
     if (type == HistoryType.Clips)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null && preValue_Clips != null)
         {
             HistoryItem_Clips item = new HistoryItem_Clips(this);
             item.setValue(preValue_Clips, getHistoryValue_Clips());
             AddItem(item);
         }
     }
     if (type == HistoryType.Imgs)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null && preValue_Imgs != null)
         {
             HistoryItem_Imgs item = new HistoryItem_Imgs(this);
             item.setValue(preValue_Imgs, getHistoryValue_Imgs());
             AddItem(item);
         }
     }
     form_MA.refreshHistoryButtons();
     ReadyHistory(type);
 }
Exemplo n.º 2
0
 //增加历史记录
 public void AddHistory(HistoryType type)
 {
     if (type == HistoryType.Action)
     {
         if (form_MA.form_MTimeLine != null && form_MA.form_MTimeLine.currentTimeLineHoder != null && preValue_Action != null)
         {
             HistoryItem_Action item = new HistoryItem_Action(this);
             item.setValue(preValue_Action, getHistoryValue_Action());
             AddItem(item);
         }
     }
     if (type == HistoryType.Actor)
     {
         if (form_MA.form_MActorList != null && form_MA.form_MActorList.actorsManager != null && preValue_Actor!=null)
         {
             HistoryItem_Actor item = new HistoryItem_Actor(this);
             item.setValue(preValue_Actor, getHistoryValue_Actor());
             AddItem(item);
         }
     }
     if (type == HistoryType.Clips)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.MClipsManager != null && preValue_Clips!=null)
         {
             HistoryItem_Clips item = new HistoryItem_Clips(this);
             item.setValue(preValue_Clips, getHistoryValue_Clips());
             AddItem(item);
         }
     }
     if (type == HistoryType.Imgs)
     {
         if (form_MA.form_MImgsList != null && form_MA.form_MImgsList.mImgsManager != null && preValue_Imgs != null)
         {
             HistoryItem_Imgs item = new HistoryItem_Imgs(this);
             item.setValue(preValue_Imgs, getHistoryValue_Imgs());
             AddItem(item);
         }
     }
     form_MA.refreshHistoryButtons();
     ReadyHistory(type);
 }