예제 #1
0
        public void Execute(object parameter)
        {
            string            date     = (parameter as object[])[0].ToString();
            CalendarViewModel calendar = (parameter as object[])[1] as CalendarViewModel;

            calendar.ChooseTime = date;
        }
예제 #2
0
        public void Execute(object parameter)
        {
            CalendarViewModel calendar = parameter as CalendarViewModel;

            calendar.CalendarHandle.BackMonth();
            calendar.TimeList      = calendar.CalendarHandle.GetChooseTimeList();
            calendar.TimeListTitle = calendar.CalendarHandle.GetCurrentYearMonth();
        }
예제 #3
0
 public CalendarHandle(CalendarViewModel calendarViewModel)
 {
     this.mMonth             = DateTime.Now.Month;
     this.mYear              = DateTime.Now.Year;
     this.mCalendarViewModel = calendarViewModel;
 }
예제 #4
0
        public void Execute(object parameter)
        {
            CalendarViewModel calendar = parameter as CalendarViewModel;

            calendar.TimeListVisibility = calendar.TimeListVisibility == Visibility.Collapsed ? Visibility.Visible : Visibility.Collapsed;
        }