示例#1
0
        public void CopyTrack(Track_Wrapper trackWrapper)
        {
            if (trackWrapper?.WaveformWrapper == null)
            {
                return;
            }

            CopiedTrack track = new CopiedTrack(trackWrapper.WaveformWrapper.WaveformRef, trackWrapper.WaveformWrapper.AwbEntry);

            Clipboard.SetData(ACB_File.CLIPBOARD_ACB_TRACK, track);
        }
示例#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);
        }