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