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)); } }
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)); } }