示例#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
 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));
     }
 }