/// <summary> /// /// </summary> /// <param name="cutPasteAction"></param> private void CopyPasteInit(bool cutPasteAction) { PcgClipBoard.Clear(); if (!cutPasteAction) { PcgClipBoard.CutPasteSelected = false; } PcgClipBoard.CopyFileName = SelectedPcgMemory.FileName; PcgClipBoard.Model = SelectedPcgMemory.Model; }
/// <summary> /// /// </summary> private void PastingFinished() { var count = 0; for (var index = 0; index < (int)ProgramBank.SynthesisType.Last; index++) { count += PcgClipBoard.Programs[index].CopiedPatches.Count; } if (!((PcgClipBoard.SetListSlots.CopiedPatches.Count == 0) && (PcgClipBoard.Combis.CopiedPatches.Count == 0) && (PcgClipBoard.DrumKits.CopiedPatches.Count == 0) && (PcgClipBoard.DrumPatterns.CopiedPatches.Count == 0) && (PcgClipBoard.WaveSequences.CopiedPatches.Count == 0) && (count == 1))) //IMPR: Why count == 1 and not 0? (needs the last to be copied ?) { PcgClipBoard.Clear(); } }