Exemple #1
0
 protected void StopOutOfBoundsSelection()
 {
     if (OutOfBoundsSelectionTimer != null)
     {
         OutOfBoundsSelectionTimer.Stop();
         OutOfBoundsSelectionTimer.Enabled = false;
     }
 }
Exemple #2
0
 public override void OnMouseUp(MouseButtonEventArgs e)
 {
     if (Timer != null)
     {
         Timer.Stop();
     }
     base.OnMouseUp(e);
     IsMouseDown = false;
     Invalidate();
 }
Exemple #3
0
        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();
        }