Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public List <IUndoRedo> PasteTrack(Cue_Wrapper cue)
        {
            List <IUndoRedo> undos = new List <IUndoRedo>();

            if (!CanPasteTrack())
            {
                return(undos);
            }

            CopiedTrack track = (CopiedTrack)Clipboard.GetData(ACB_File.CLIPBOARD_ACB_TRACK);

            if (track != null && cue != null)
            {
                undos.AddRange(AcbFile.AddTrackToCue(cue.CueRef, track.TrackBytes, track.Streaming, track.Loop, track.encodeType));
            }

            cue.Refresh();
            undos.Add(new UndoActionDelegate(cue, "Refresh", true));

            return(undos);
        }