void pianoRollWindow1_TrackMouseClick(object sender, PianoMouseEventArgs e) { if (e.MouseEventArgs.Button == MouseButtons.Right) { SetPianoActionMenu(); PianoRollActionMenu.Show(PointToScreen(new Point(e.MouseEventArgs.X, e.MouseEventArgs.Y)), ToolStripDropDownDirection.BelowRight); } else { Controller.RealaramNoteSelecting(); } }
void PianoWindow_TrackMouseDoubleClick(object sender, PianoMouseEventArgs e) { if (NoteDragingWork == NoteDragingType.NoteMove) { if (CurrentNoteIndex > -1) { if (e.Tick - NoteTempTick == NoteList[CurrentNoteIndex].Tick) { EditNoteLyric(CurrentNoteIndex); } } } }
void PianoWindow_TrackMouseMove(object sender, PianoMouseEventArgs e) { // this.PianoWindow.ParentForm.Activate(); // this.PianoWindow.Focus(); HookParam = false; if (e.Tick < PianoWindow.MinShownTick || e.Tick > PianoWindow.MaxShownTick) { HookPiano = false; DisableMousePost(); } else { HookPiano = true; } MouseTick = e.Tick; }
void PianoWindow_TrackMouseClick(object sender, PianoMouseEventArgs e) { if (NoteDragingWork == NoteDragingType.NoteMove) { if (CurrentNoteIndex > -1) { if (e.Tick - NoteTempTick == NoteList[CurrentNoteIndex].Tick) { if (Control.ModifierKeys != Keys.Control && Control.ModifierKeys != Keys.Shift) { ClearSelect(); } if (Control.ModifierKeys == Keys.Shift && NoteSelectIndexs.Count > 0) { for (int i = Math.Min(NoteSelectIndexs[NoteSelectIndexs.Count - 1], CurrentNoteIndex); i <= Math.Max(NoteSelectIndexs[NoteSelectIndexs.Count - 1], CurrentNoteIndex); i++) { if (!NoteSelectIndexs.Contains(i)) { NoteSelectIndexs.Add(i); } } if (NoteSelectListChange != null) { NoteSelectListChange(NoteSelectIndexs); } } else { NoteSelectIndexs.Add(CurrentNoteIndex); if (NoteSelecting != null && NoteSelectIndexs.Count == 1) { NoteSelecting(NoteSelectIndexs[0]); } if (NoteSelectListChange != null) { NoteSelectListChange(NoteSelectIndexs); } } } } } }
private void pianoRollWindow1_RollMouseDown(object sender, PianoMouseEventArgs e) { PlayNote((int)e.PitchValue.NoteNumber); }
private void pianoRollWindow1_RollMouseClick(object sender, PianoMouseEventArgs e) { }