private void copy_Click(object sender, EventArgs e) { if (MouseDownSSC == null) { return; } copiedSSC = MouseDownSSC.Copy(); }
private void duplicate_Click(object sender, EventArgs e) { if (MouseDownSSC == null) { return; } Command copiedSSC = MouseDownSSC.Copy(); List <Command> channel = SPC.Channels[MouseDownSSC.Channel]; channel.Insert(MouseDownSSC.Index + 1, copiedSSC); MouseDownSSC = copiedSSC; SPC.CreateNotes(); ReadFromCommand(); picture.Invalidate(); scoreViewerPicture.Invalidate(); }