public bool PasteNotes(long StartTick) { bool R = NV.AddNotes(StartTick, PNV); PNV.Clear(); if (!R) { return(false); } else { PV.AddPitchs(StartTick, PPV); } return(true); }
private void toolStripButton9_Click(object sender, EventArgs e) { bool R = NV.AddNotes(AV.TickPos, PNV); PNV.Clear(); toolStripButton8.BackColor = System.Drawing.SystemColors.Control; if (PNV.Count > 0) { toolStripButton8.BackColor = System.Drawing.SystemColors.ControlDark; } if (!R) { MessageBox.Show("Paste Error"); } else { PV.AddRealPitchs(AV.TickPos, PPV); } }
public bool PasteNotes(long StartTick) { bool R = NV.AddNotes(StartTick, PNV); PNV.Clear(); if (!R) { if (NoteCopyMemoryChanged != null) { NoteCopyMemoryChanged(isCopyed); } return(false); } else { PV.AddRealPitchs(StartTick, PPV); if (NoteCopyMemoryChanged != null) { NoteCopyMemoryChanged(isCopyed); } return(true); } }