Beispiel #1
0
        private void ForwardCommandExecute()
        {
            var now = DateTime.Now;

            if (DateControl.Month != now.Month || DateControl.Year != now.Year)
            {
                DateControl = DateControl.AddMonths(1);
                if (DateControl.Month == now.Month && DateControl.Year == now.Year)
                {
                    DateControl = now;
                }
                HandleDateControlChange();
            }
        }
Beispiel #2
0
 private void BackDateCommandExecute()
 {
     DateControl = DateControl.AddMonths(-1);
     HandleDateControlChange();
 }