protected void StopOutOfBoundsSelection() { if (OutOfBoundsSelectionTimer != null) { OutOfBoundsSelectionTimer.Stop(); OutOfBoundsSelectionTimer.Enabled = false; } }
public override void OnMouseUp(MouseButtonEventArgs e) { if (Timer != null) { Timer.Stop(); } base.OnMouseUp(e); IsMouseDown = false; Invalidate(); }
public void TimerAction() { if (Timer.Delay > 2) { Timer.Delay -= Timer.Delay / 20; } DateTime tmp = CurrentDate.AddMonths(tmrMonthDelta).Date; if (Math.Abs((DateTime.Now - tmp).TotalDays / 365) < 1000) { CurrentDate = tmp; } else { Timer.Stop(); tmrMonthDelta = -tmrMonthDelta; MessageBoxOverlay.ShowSuccess("You won. I loose.", ParentWindow); } Invalidate(); }