private void Copy_Click(object sender, EventArgs e) { ScorePanel selectedPanel = (tabScore.SelectedTab as TabPageEx).ScorePanel; selectedPanel.CopyNotes(); selectedPanel.Refresh(); }
public NoteEditCMenu(ScorePanel scorePanel, Position clickPosition) { var b = Status.IsCopyAvailable; stripItems = new ToolStripMenuItem[] { new ToolStripMenuItem("切り取り", null, (s, e) => scorePanel.CutNotes()) { Enabled = b }, new ToolStripMenuItem("コピー", null, (s, e) => scorePanel.CopyNotes()) { Enabled = b }, new ToolStripMenuItem("削除", null, (s, e) => scorePanel.ClearAreaNotes()) { Enabled = b }, new ToolStripMenuItem("左右反転", null, (s, e) => scorePanel.ReverseNotes()) { Enabled = b } }; Items.AddRange(stripItems); }