예제 #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();
            }
        }
예제 #2
0
 private void BackDateCommandExecute()
 {
     DateControl = DateControl.AddMonths(-1);
     HandleDateControlChange();
 }