public void CopyAction(Track_Wrapper trackWrapper) { if (trackWrapper?.TrackRef == null) { return; } CopiedAction action = new CopiedAction(trackWrapper.TrackRef, trackWrapper.TrackCommand); Clipboard.SetData(ACB_File.CLIPBOARD_ACB_ACTION, action); }
public List <IUndoRedo> PasteAction(Cue_Wrapper cue) { List <IUndoRedo> undos = new List <IUndoRedo>(); if (!CanPasteAction()) { return(undos); } CopiedAction action = (CopiedAction)Clipboard.GetData(ACB_File.CLIPBOARD_ACB_ACTION); if (action != null && cue != null) { undos.AddRange(AcbFile.AddActionToCue(cue.CueRef, action)); } cue.Refresh(); undos.Add(new UndoActionDelegate(cue, "Refresh", true)); return(undos); }