コード例 #1
0
 protected override void ShowMenu(Point coords)
 {
     if (ShowTimerMenuEvent != null)
     {
         Timer t = null;
         if (Selections.Count > 0)
         {
             TimerTimeNodeObject to = Selections.Last().Drawable as TimerTimeNodeObject;
             t = to.Timer;
         }
         ShowTimerMenuEvent(t, Utils.PosToTime(coords, SecondsPerPixel));
     }
 }
コード例 #2
0
ファイル: CamerasTimeline.cs プロジェクト: kuggaa/longomatch
 protected override void ShowMenu(Point coords)
 {
     if (ShowTimerMenuEvent != null &&
         coords.Y >= PeriodsTimeline.OffsetY &&
         coords.Y <= PeriodsTimeline.OffsetY + PeriodsTimeline.Height)
     {
         Timer t = null;
         if (Selections.Count > 0)
         {
             TimerTimeNodeObject to = Selections.Last().Drawable as TimerTimeNodeObject;
             t = to.Timer;
         }
         ShowTimerMenuEvent(t, Utils.PosToTime(coords, SecondsPerPixel));
     }
 }