コード例 #1
0
 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();
     }
 }
コード例 #2
0
 void PianoWindow_TrackMouseDoubleClick(object sender, PianoMouseEventArgs e)
 {
     if (NoteDragingWork == NoteDragingType.NoteMove)
     {
         if (CurrentNoteIndex > -1)
         {
             if (e.Tick - NoteTempTick == NoteList[CurrentNoteIndex].Tick)
             {
                 EditNoteLyric(CurrentNoteIndex);
             }
         }
     }
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 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);
                     }
                 }
             }
         }
     }
 }
コード例 #5
0
 private void pianoRollWindow1_RollMouseDown(object sender, PianoMouseEventArgs e)
 {
     PlayNote((int)e.PitchValue.NoteNumber);
 }
コード例 #6
0
 private void pianoRollWindow1_RollMouseClick(object sender, PianoMouseEventArgs e)
 {
 }